Build fixes
[tpg/acess2.git] / Usermode / Applications / Makefile.tpl
index aadfbdb..b82e7ac 100644 (file)
@@ -19,7 +19,11 @@ install: $(BIN)
 
 $(BIN): $(OBJ)
        @echo --- $(LD) -o $@
+ifneq ($(_DBGMAKEFILE),)
+       $(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map Map.txt
+else
        @$(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map Map.txt
+endif
        @objdump -d -S $(BIN) > $(BIN).dsm
 
 $(OBJ): %.o: %.c

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