Ticket #8744: reconfigure2.patch
File reconfigure2.patch, 1.8 KB (added by , 17 years ago) |
---|
-
configure
9 9 # * detect whether the chosen backend is available (e.g. call sdl-config) 10 10 # * .... 11 11 12 # Save the current environment variables for next runs 13 SAVE_CONFIGFLAGS=$@ 14 SAVE_LDFLAGS=$LDFLAGS 15 SAVE_CXX=$CXX 16 SAVE_CXXFLAGS=$CXXFLAGS 17 SAVE_CPPFLAGS=$CPPFLAGS 12 18 13 19 # use environment vars if set 14 20 CXXFLAGS="$CXXFLAGS $CPPFLAGS" … … 1625 1631 OBJS += $OBJS 1626 1632 DEFINES += $DEFINES 1627 1633 LDFLAGS += $LDFLAGS 1634 1635 SAVE_CONFIGFLAGS := $SAVE_CONFIGFLAGS 1636 SAVE_LDFLAGS := $SAVE_LDFLAGS 1637 SAVE_CXX := $SAVE_CXX 1638 SAVE_CXXFLAGS := $SAVE_CXXFLAGS 1639 SAVE_CPPFLAGS := $SAVE_CPPFLAGS 1628 1640 EOF 1629 1641 1630 1642 # -
Makefile
16 16 MODULE_DIRS := 17 17 18 18 # Load the make rules generated by configure 19 include config.mk19 -include config.mk 20 20 21 21 CXXFLAGS:= -Wall $(CXXFLAGS) 22 22 CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas … … 44 44 45 45 # check if configure has been run or has been changed since last run 46 46 config.mk: $(srcdir)/configure 47 @echo "You need to run ./configure before you can run make" 48 @echo "Either you haven't run it before or it has changed." 49 @exit 1 47 ifdef BACKEND 48 @echo "Running $(srcdir)/configure with the last specified parameters" 49 @sleep 2s 50 @LDFLAGS=$(SAVE_LDFLAGS) CXX=$(SAVE_CXX) CXXFLAGS=$(SAVE_CXXFLAGS) CPPFLAGS=$(SAVE_CPPFLAGS) \ 51 $(srcdir)/configure $(SAVE_CONFIGFLAGS) 52 else 53 $(error You need to run $(srcdir)/configure before you can run make. Check $(srcdir)/configure --help for a list of parameters) 54 endif 50 55 51 56 install: all 52 57 $(INSTALL) -d "$(DESTDIR)$(BINDIR)"