X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Fld-acess.so_src%2FMakefile;h=a588f759f47c93720543e832a62ba3d905d9b5fb;hb=b829bff15b4760c20c7b0eae49c70c35aa2b46d6;hp=b4fa2483e2726a1eefa181cd763c3eb71d30f3c5;hpb=09592a0931d9df3eb450ba5029121df3f3fcf787;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/ld-acess.so_src/Makefile b/Usermode/Libraries/ld-acess.so_src/Makefile index b4fa2483..a588f759 100644 --- a/Usermode/Libraries/ld-acess.so_src/Makefile +++ b/Usermode/Libraries/ld-acess.so_src/Makefile @@ -11,10 +11,11 @@ EXTRABIN := libld-acess.so EXTRACLEAN = $(_OBJPREFIX)_stublib.o INCFILES := sys/sys.h -CFLAGS = -g -Wall -fno-builtin -fno-stack-protector -fPIC +CFLAGS = -g -Wall -fno-builtin -fno-stack-protector -fPIC -std=c99 -ffreestanding # -fno-leading-underscore CFLAGS += $(CPPFLAGS) -LDFLAGS = -g -T arch/$(ARCHDIR).ld -Map map.txt --export-dynamic +LDFLAGS = -ffreestanding -nostdlib -g -Wl,-T,arch/$(ARCHDIR).ld -Map map.txt --export-dynamic -x +LIBS := $(LIBGCC_PATH) ifeq ($(ARCH),native) XBIN := $(addprefix $(OUTPUTDIR)Libs/,$(EXTRABIN)) @@ -49,5 +50,7 @@ $(_OBJPREFIX)arch/$(ARCHDIR).$(ASSUFFIX): arch/$(ARCHDIR).$(ASSUFFIX).h arch/sys @mkdir -p $(dir $@) @$(CPP) $(CPPFLAGS) -P -D__ASSEMBLER__ $< -o $@ +$(_OBJPREFIX)arch/$(ARCHDIR).$(ASSUFFIX): $(ACESSDIR)/KernelLand/Kernel/include/syscalls.h + $(_OBJPREFIX)_stublib.o: arch/syscalls.s.h