* support/regression/tests/bug-478094.c: Added.
[fw/sdcc] / support / cpp2 / Makefile.in
index bc762001ac51d8371a03e2716f1e7aafb0c6b10f..7657f242b15b16fb8ba9d14fac182b56032ad09f 100644 (file)
@@ -23,7 +23,7 @@
 #Boston MA 02111-1307, USA.
 
 PRJDIR = ../..
-TARGET = $(PRJDIR)/bin/sdcpp2
+TARGET = $(PRJDIR)/bin/sdcpp
 
 # This is the default target.
 all: $(TARGET)
@@ -43,6 +43,7 @@ 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 +87,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,7 +105,9 @@ OBSTACK=obstack.o
 # End of variables for you to override.
 
 install: all
-       $(INSTALL) -s $(TARGET) $(bindir)/sdcpp
+       mkdir -p $(bindir)
+       $(INSTALL) $(TARGET) `echo $(bindir)/sdcpp|sed '$(transform)'`
+       $(STRIP) `echo $(bindir)/sdcpp|sed '$(transform)'`
 
 clean:
        -rm -f $(TARGET) *.o core libcpp.a
@@ -209,7 +214,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)