EXEEXT introduces to solve Cygwin problems
[fw/sdcc] / support / makebin / Makefile
index de2ea9ae2449f898bdb8d2f2baad2fb7cb8bf074..66e49b30858715328d7494214e6b6a4cb4e5bde7 100644 (file)
@@ -1,7 +1,7 @@
 PRJDIR = ../..
 
 SOURCES = makebin.c
-BIN = $(PRJDIR)/bin/makebin
+BIN = $(PRJDIR)/bin/makebin$(EXEEXT)
 
 include $(PRJDIR)/Makefile.common
 
@@ -12,9 +12,10 @@ $(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
+       rm -f $(bindir)/makebin$(EXEEXT)
 
 include clean.mk