Fixed crt0.o not creating its output directory
[tpg/acess2.git] / Usermode / Libraries / crt0.o_src / Makefile
index f191556..a69be9b 100644 (file)
@@ -5,15 +5,17 @@
 -include ../Makefile.cfg
 
 ASFLAGS = -felf
+BIN = $(OUTPUTDIR)Libs/crt0.o
 
-.PHONY: all clean
+.PHONY: all clean install
 
-all: ../crt0.o
+all: $(BIN)
 
-install:
+install: $(BIN)
 
 clean:
-       $(RM) ../crt0.o
+       $(RM) $(BIN)
 
-../crt0.o: crt0.asm
+$(BIN): crt0.$(ARCHDIR).asm
+       @$(MKDIR) $(dir $(BIN))
        $(AS) $(ASFLAGS) $< -o $@

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