Makefile - Fix mtest target (and clean up utest targets)
[tpg/acess2.git] / Usermode / Libraries / crt0.o_src / Makefile
index f191556..3c20896 100644 (file)
@@ -4,16 +4,34 @@
 
 -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 utest-build generate_exp
 
-all: ../crt0.o
+all: $(BIN)
 
-install:
+install: $(BIN)
 
 clean:
-       $(RM) ../crt0.o
+       $(RM) $(BIN)
+
+# 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 $@
 
-../crt0.o: crt0.asm
-       $(AS) $(ASFLAGS) $< -o $@

UCC git Repository :: git.ucc.asn.au