X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Fcrt0.o_src%2FMakefile;h=3c208960dce6cc9902237cb50a28a41ea06c3784;hb=47296e890b2b09cbc46db30d7fe2aeeae11a6d4a;hp=62d04ed5f957b4c7af04e20b527e68c25d373267;hpb=cb8ee714fcb4fce504fd767462789093a9fecbb1;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/crt0.o_src/Makefile b/Usermode/Libraries/crt0.o_src/Makefile index 62d04ed5..3c208960 100644 --- a/Usermode/Libraries/crt0.o_src/Makefile +++ b/Usermode/Libraries/crt0.o_src/Makefile @@ -4,10 +4,9 @@ -include ../Makefile.cfg -ASFLAGS = -felf -BIN = $(OUTPUTDIR)Libs/crt0.o +BIN = $(OUTPUTDIR)Libs/crt0.o $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crtend.o -.PHONY: all clean install +.PHONY: all clean install utest utest-build generate_exp all: $(BIN) @@ -16,5 +15,23 @@ install: $(BIN) clean: $(RM) $(BIN) -$(BIN): crt0.$(ARCHDIR).asm - $(AS) $(ASFLAGS) $< -o $@ +# Disabled unit tests +utest generate_exp utest-build utest-run: + @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 $@ +