#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)
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.
# where the info files go
exeext = @host_exeext@
+transform = @program_transform_name@
+
# Top build directory, relative to here.
top_builddir = .
# 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
# 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)
$(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)