X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Fcrt0.o_src%2FMakefile;h=7ddc5f413966bc7f3ab61231729a46e3842b7993;hb=525c778c6b4c1cf24db7efa40f2809eda1628357;hp=c039e72b6fd7a323d5b28a89dd6867e3dcb1c3f2;hpb=17e16b3110b4c5124b0707435e0427993d696545;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/crt0.o_src/Makefile b/Usermode/Libraries/crt0.o_src/Makefile index c039e72b..7ddc5f41 100644 --- a/Usermode/Libraries/crt0.o_src/Makefile +++ b/Usermode/Libraries/crt0.o_src/Makefile @@ -2,14 +2,36 @@ # # -AS = nasm -RM = rm -f +-include ../Makefile.cfg -ASFLAGS = -felf +BIN = $(OUTPUTDIR)Libs/crt0.o $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crtend.o -.PHONY: all clean +.PHONY: all clean install utest generate_exp -all: ../crt0.o +all: $(BIN) + +install: $(BIN) + +clean: + $(RM) $(BIN) + +# Disabled unit tests +utest generate_exp: + @echo > /dev/null + +$(OUTPUTDIR)Libs/%.o: %.c + @mkdir -p $(dir $@) + $(CC) -c $< -o $@ + +#$(OUTPUTDIR)Libs/crt0.o: obj-$(ARCH)/crt0_asm.o obj-$(ARCH)/crt0_c.o +# @mkdir -p $(dir $@) +# $(LD) -r -o $@ $? + +#obj-$(ARCH)/crt0_asm.o: crt0.$(ARCHDIR).$(ASSUFFIX) +# @mkdir -p $(dir $@) +# $(AS) $(ASFLAGS) $< -o $@ + +#obj-$(ARCH)/crt0_c.o: crt0.c +# @mkdir -p $(dir $@) +# $(CC) -c $< -o $@ -../crt0.o: crt0.asm - $(AS) $(ASFLAGS) $< -o $@