X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fcpp2%2FMakefile.in;h=44d747a6f1caff05fba08ce001034d2172d58443;hb=f1c40004ae349f7cd3a1a5c5c85f62f695196370;hp=8607c0759084e3a24f1dfe0e1459b1a110170a7f;hpb=ff73ce1823ad3aae270aeb3d4f89d077db95bc53;p=fw%2Fsdcc diff --git a/support/cpp2/Makefile.in b/support/cpp2/Makefile.in index 8607c075..44d747a6 100644 --- a/support/cpp2/Makefile.in +++ b/support/cpp2/Makefile.in @@ -22,8 +22,9 @@ #the Free Software Foundation, 59 Temple Place - Suite 330, #Boston MA 02111-1307, USA. +EXEEXT = @EXEEXT@ PRJDIR = ../.. -TARGET = $(PRJDIR)/bin/sdcpp +TARGET = $(PRJDIR)/bin/sdcpp$(EXEEXT) # This is the default target. all: $(TARGET) @@ -34,9 +35,11 @@ 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 @@ -105,10 +108,12 @@ OBSTACK=obstack.o # End of variables for you to override. install: all - mkdir -p $(bindir) - $(INSTALL) $(TARGET) `echo $(bindir)/sdcpp|sed '$(transform)'` - $(STRIP) `echo $(bindir)/sdcpp|sed '$(transform)'` + 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