Networking - Working on DHCP client (and related changes)
[tpg/acess2.git] / Usermode / Applications / Makefile.tpl
index b2cfcd1..27cf9e5 100644 (file)
@@ -4,7 +4,7 @@
 #
 
 CFLAGS  += -Wall -Werror -fno-builtin -fno-stack-protector -g
-LDFLAGS += 
+LDFLAGS += -g
 
 _BIN := $(OUTPUTDIR)$(DIR)/$(BIN)
 _OBJPREFIX := obj-$(ARCH)/
@@ -39,12 +39,12 @@ ifneq ($(_DBGMAKEFILE),)
 else
        @$(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map $(_OBJPREFIX)Map.txt
 endif
-       @$(DISASM) $(_BIN) > $(BIN).dsm
+       @$(DISASM) $(_BIN) > $(_OBJPREFIX)$(BIN).dsm
 
 $(OBJ): $(_OBJPREFIX)%.o: %.c
        @echo [CC] -o $@
 ifneq ($(_OBJPREFIX),)
-       @mkdir -p $(_OBJPREFIX)
+       @mkdir -p $(dir $@)
 endif
        @$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
        @$(CC) -M -MT $@ $(CPPFLAGS) $< -o $(_OBJPREFIX)$*.dep

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