Some hc08 related updates that I missed earlier
[fw/sdcc] / support / makebin / Makefile
index e8d2adda5cbd8caf98ea66b57dd6913ace56ad1b..66e49b30858715328d7494214e6b6a4cb4e5bde7 100644 (file)
@@ -1,17 +1,21 @@
 PRJDIR = ../..
 
 SOURCES = makebin.c
-BIN = $(PRJDIR)/bin/makebin
+BIN = $(PRJDIR)/bin/makebin$(EXEEXT)
 
 include $(PRJDIR)/Makefile.common
 
 all: $(BIN)
 
 $(BIN): $(OBJ)
-       $(CC) -o $(BIN) $(OBJ)
+       $(CC) $(LDFLAGS) -o $(BIN) $(OBJ)
 
 install: all
        mkdir -p $(bindir)
-       $(INSTALL) $(BIN) `echo $(bindir)/makebin|sed '$(transform)'`
+       $(INSTALL) $(BIN) `echo $(bindir)/makebin$(EXEEXT)|sed '$(transform)'`
+       $(STRIP) `echo $(bindir)/makebin$(EXEEXT)|sed '$(transform)'`
+
+uninstall:
+       rm -f $(bindir)/makebin$(EXEEXT)
 
 include clean.mk