Usermode - Finally cleaned up ELF32 relocation
[tpg/acess2.git] / Usermode / Libraries / crt0.o_src / Makefile
index 324836b..8e4787d 100644 (file)
@@ -2,19 +2,19 @@
 #
 #
 
-AS = nasm
-RM = rm -f
+-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).$(ASSUFFIX)
+       @mkdir -p $(dir $(BIN))
        $(AS) $(ASFLAGS) $< -o $@

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