Fixed up initalisation of size
[fw/sdcc] / src / Makefile.in
index a16e04554407e67a248e7c4b3e298328ffa8d838..ea65a689703d479f40cd0d6e314ddd566fc3cbd3 100644 (file)
@@ -19,8 +19,8 @@ LIBS          = -lm @LIBS@
 ifdef SDCC_SUB_VERSION
 CFLAGS         += -DSDCC_SUB_VERSION_STR=\"$(SDCC_SUB_VERSION)\"
 endif
-SLIBOBJS       = SDCCerr.o NewAlloc.o
+
+SLIBOBJS       = SDCCerr.o NewAlloc.o MySystem.o BuildCmd.o
 
 OBJECTS        = SDCCy.o SDCChasht.o SDCCmain.o \
                  SDCCsymt.o SDCCopt.o SDCCast.o SDCCmem.o SDCCval.o \
@@ -39,7 +39,7 @@ endif
 
 SOURCES                = $(patsubst %.o,%.c,$(OBJECTS))
 
-TARGET         = $(PRJDIR)/bin/sdcc
+TARGET         = $(PRJDIR)/bin/sdcc$(EXEEXT)
 
 # Compiling entire program or any subproject
 # ------------------------------------------
@@ -54,14 +54,14 @@ $(PRJDIR)/support/gc/libgc.a:
 # Compiling and installing everything and runing test
 # ---------------------------------------------------
 install: all installdirs
-       $(INSTALL) -s $(TARGET) $(bindir)/sdcc
+       $(INSTALL) $(TARGET) `echo $(bindir)/sdcc|sed '$(transform)'`
+       $(STRIP) -s `echo $(bindir)/sdcc|sed '$(transform)'`
 
 
 # Deleting all the installed files
 # --------------------------------
 uninstall:
        rm -f $(bindir)/sdcc
-       rm -f $(bindir)/packihx
 
 # Performing self-test
 # --------------------