Makefile - Fix mtest target (and clean up utest targets)
[tpg/acess2.git] / Usermode / Libraries / crt0.o_src / Makefile
index 62d04ed..3c20896 100644 (file)
@@ -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 $@
+

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