* device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
[fw/sdcc] / support / cpp2 / Makefile.in
index bc762001ac51d8371a03e2716f1e7aafb0c6b10f..44d747a6f1caff05fba08ce001034d2172d58443 100644 (file)
@@ -22,8 +22,9 @@
 #the Free Software Foundation, 59 Temple Place - Suite 330,
 #Boston MA 02111-1307, USA.
 
+EXEEXT = @EXEEXT@
 PRJDIR = ../..
-TARGET = $(PRJDIR)/bin/sdcpp2
+TARGET = $(PRJDIR)/bin/sdcpp$(EXEEXT)
 
 # This is the default target.
 all: $(TARGET)
@@ -34,15 +35,18 @@ srcdir = @srcdir@
 
 
 LIBS = @LIBS@
+CFLAGS = @CFLAGS@
 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) \
   $(CFLAGS) $(WARN_CFLAGS) $(XCFLAGS) @DEFS@
 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
+LDFLAGS = @LDFLAGS@
 
 CC = @CC@
 AR = ar
 AR_FLAGS = rc
 RANLIB = @RANLIB@
 SHELL = /bin/sh
+STRIP = @STRIP@
 # on sysV, define this as cp.
 INSTALL = @INSTALL@
 # Some systems may be missing symbolic links, regular links, or both.
@@ -86,6 +90,8 @@ includedir = $(local_prefix)/include
 # where the info files go
 exeext = @host_exeext@
 
+transform       = @program_transform_name@
+
 # Top build directory, relative to here.
 top_builddir = .
 
@@ -102,8 +108,12 @@ OBSTACK=obstack.o
 # End of variables for you to override.
 
 install: all
-       $(INSTALL) -s $(TARGET) $(bindir)/sdcpp
+       mkdir -p $(DESTDIR)$(bindir)
+       $(INSTALL) $(TARGET) `echo $(DESTDIR)$(bindir)/sdcpp$(EXEEXT)|sed '$(transform)'`
+       $(STRIP) `echo $(DESTDIR)$(bindir)/sdcpp$(EXEEXT)|sed '$(transform)'`
 
+uninstall:
+       rm -f $(DESTDIR)$(bindir)/sdcpp$(EXEEXT)
 clean:
        -rm -f $(TARGET) *.o core libcpp.a
 
@@ -122,17 +132,17 @@ SYSTEM_H = system.h hwint.h
 
 # sed inserts variable overrides after the following line.
 ####target overrides
-@target_overrides@
+#@target_overrides@
 
 ####host overrides
-@host_overrides@
+#@host_overrides@
 
 ####cross overrides
-@cross_defines@
-@cross_overrides@
+#@cross_defines@
+#@cross_overrides@
 
 ####build overrides
-@build_overrides@
+#@build_overrides@
 #\f
 
 INCLUDES = -I$(srcdir) -I$(LIBIBERTY_DIR)
@@ -209,7 +219,7 @@ libcpp.a: $(LIBCPP_OBJS)
        $(AR) $(AR_FLAGS) libcpp.a $(LIBCPP_OBJS)
        -$(RANLIB) libcpp.a
 
-MY_LIBIBERTY_BITS = intl.o safe-ctype.o obstack.o splay-tree.o \
+MY_LIBIBERTY_BITS = safe-ctype.o obstack.o splay-tree.o \
                    lbasename.o
 
 $(TARGET): cppmain.o intl.o $(MY_LIBIBERTY_BITS) libcpp.a $(LIBDEPS)