Use headers defined in the C[++] standards:
[fw/sdcc] / sim / ucsim / main_in.mk
index 7d47fb8542680ce18df74f36ca556fa4eca34bd9..413f4dbe2f0b6a5b90e76d5d51a7bfe325507e2e 100644 (file)
@@ -26,7 +26,9 @@ CFLAGS          = @CFLAGS@ -I$(PRJDIR) -Wall
 CXXFLAGS        = @CXXFLAGS@ -I$(PRJDIR) -Wall
 M_OR_MM         = @M_OR_MM@
 
-LIB_LIST       = sim cmd sim util
+EXEEXT          = @EXEEXT@
+
+LIB_LIST       = util sim cmd sim
 UCSIM_LIBS     = $(patsubst %,-l%,$(LIB_LIST))
 UCSIM_LIB_FILES        = $(patsubst %,lib%.a,$(LIB_LIST))
 
@@ -42,7 +44,7 @@ man2dir         = $(mandir)/man2
 infodir         = @infodir@
 srcdir          = @srcdir@
 
-OBJECTS         = pobj.o globals.o utils.o error.o
+OBJECTS         = pobj.o globals.o utils.o error.o app.o option.o
 SOURCES                = $(patsubst %.o,%.cc,$(OBJECTS))
 UCSIM_OBJECTS  = ucsim.o
 UCSIM_SOURCES  = $(patsubst %.o,%.cc,$(UCSIM_OBJECTS))
@@ -67,10 +69,10 @@ install: all installdirs
 # Deleting all the installed files
 # --------------------------------
 uninstall:
-       rm -f $(bindir)/s51
-       rm -f $(bindir)/savr
-       rm -f $(bindir)/serialview
-       rm -f $(bindir)/portmon
+       rm -f $(bindir)/s51$(EXEEXT)
+       rm -f $(bindir)/savr$(EXEEXT)
+       rm -f $(bindir)/serialview$(EXEEXT)
+       rm -f $(bindir)/portmon$(EXEEXT)
 
 
 # Performing self-test
@@ -138,7 +140,7 @@ ucsim: $(UCSIM_OBJECTS) $(UCSIM_LIB_FILES)
 # ----------------------
 checkconf:
        @if [ -f devel ]; then\
-         echo "MAIN.MK checkconf";\
+         $(PRJDIR)/mkecho $(PRJDIR) "MAIN.MK checkconf";\
          $(MAKE) -f conf.mk srcdir="$(srcdir)" freshconf;\
        fi