Fixed up s51 autodetect
[fw/sdcc] / src / Makefile.in
index 5e05f3be8c6dea36c96b6f63e756347d98498d61..ffff6dbc703c769c67819c93dab7805ce57633bf 100644 (file)
@@ -8,7 +8,8 @@ include $(PRJDIR)/Makefile.common
 
 USE_ALT_LEX    = 0
 
-PORTS          = mcs51 z80 avr ds390 pic izt
+PORTS          = $(shell cat ../ports.build)
+ALLPORTS       = $(shell cat ../ports.all)
 PORT_LIBS      = $(PORTS:%=%/port.a)
 
 LIBS           = -lm @LIBS@
@@ -18,15 +19,15 @@ 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 \
                  SDCCicode.o SDCCbitv.o SDCCset.o SDCClabel.o \
                  SDCCBBlock.o SDCCloop.o SDCCcse.o SDCCcflow.o SDCCdflow.o \
                  SDCClrange.o SDCCptropt.o SDCCpeeph.o SDCCglue.o spawn.o \
-                 asm.o
+                 asm.o SDCCmacro.o SDCCutil.o
 
 SPECIAL                = SDCCy.h 
 ifeq ($(USE_ALT_LEX), 1)
@@ -38,7 +39,7 @@ endif
 
 SOURCES                = $(patsubst %.o,%.c,$(OBJECTS))
 
-TARGET         = $(PRJDIR)/bin/sdcc
+TARGET         = $(PRJDIR)/bin/sdcc$(EXEEXT)
 
 # Compiling entire program or any subproject
 # ------------------------------------------
@@ -53,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) `echo $(bindir)/sdcc|sed '$(transform)'`
 
 
 # Deleting all the installed files
 # --------------------------------
 uninstall:
        rm -f $(bindir)/sdcc
-       rm -f $(bindir)/packihx
 
 # Performing self-test
 # --------------------