From: <de...@us...> - 2004-01-07 21:32:15
|
Update of /cvsroot/darkeyetool/det In directory sc8-pr-cvs1:/tmp/cvs-serv23465 Added Files: configure Log Message: configure Skript erstellt --- NEW FILE: configure --- #!/bin/sh case `uname -s` in CYGWIN*) PLATFORM=Cygwin;; FreeBSD | Linux) PLATFORM=UNIX;; *) PLATFORM=UNIX;; esac echo "CXX=c++" > Makefile CFLAGS="-O0 -isystem /usr/local/include/ -isystem /usr/include/ -I ./res/ -I ./src/ `wx-config --cxxflags | sed -e 's/-I/-isystem/g'`" echo "CFLAGS=${CFLAGS}" >> Makefile echo "CFLAGS += -w" >> Makefile echo "CFLAGS += -Wall -Werror" >> Makefile #echo "CFLAGS += -Wno-comment" >> Makefile echo "CFLAGS += -pedantic -pedantic-errors -Wno-long-long" >> Makefile echo "LFLAGS=`wx-config --libs` -L/lib/ -L/usr/local/lib/" >> Makefile case ${PLATFORM} in Cygwin) echo "LFLAGS += -lxerces-c.dll -mwindows" >> Makefile;; UNIX) echo "LFLAGS += -lxerces-c" >> Makefile;; esac echo "OBJECTS=`echo \`find src/ -name '*.cpp' | sed -e 's/\.cpp\$/\.o/' | grep -v src/detVer.o\` src/detVer.o`" >> Makefile case ${PLATFORM} in Cygwin) echo "OBJECTS += det.o" >> Makefile;; esac case ${PLATFORM} in Cygwin) echo ".SUFFIXES: .rc" >> Makefile;; esac case ${PLATFORM} in Cygwin) echo "all: det.exe" >> Makefile;; UNIX) echo "all: det" >> Makefile;; esac for i in `find src -name '*.cpp'` do g++ ${CFLAGS} -MM $i -MT `echo $i | sed -e 's/\.cpp\$/\.o/'` >> Makefile done case ${PLATFORM} in Cygwin) echo "det.exe: \$(OBJECTS)" >> Makefile;; UNIX) echo "det: \$(OBJECTS)" >> Makefile;; esac echo " @echo Binde \$@" >> Makefile echo " @\$(CXX) \$(OBJECTS) \$(LFLAGS) -o \$@" >> Makefile echo ".cpp.o:" >> Makefile echo " @echo Kompiliere \$<" >> Makefile echo " @\$(CXX) \$(CFLAGS) -c \$< -o \$@" >> Makefile case ${PLATFORM} in Cygwin) echo ".rc.o:" >> Makefile echo " @echo Verarbeite Ressource \$<" >> Makefile echo " @windres --include-dir /usr/local/include/ -O coff \$< -o \$@" >> Makefile;; esac case ${PLATFORM} in Cygwin) echo "src/detVer.cpp: vcreate.exe" >> Makefile;; UNIX) echo "src/detVer.cpp: vcreate" >> Makefile;; esac echo " @echo Erzeuge \$@" >> Makefile echo " @./vcreate" >> Makefile case ${PLATFORM} in Cygwin) echo "vcreate.exe: vcreate.cpp" >> Makefile;; UNIX) echo "vcreate: vcreate.cpp" >> Makefile;; esac echo " @echo Erzeuge \$@" >> Makefile echo " @\$(CXX) vcreate.cpp -o vcreate" >> Makefile echo "clean:" >> Makefile echo " @echo Raeume auf" >> Makefile case ${PLATFORM} in Cygwin) echo " @-rm -f det.exe vcreate.exe det.o src/detVer.cpp src/*.o src/dsa/*.o src/gui/*.o" >> Makefile;; UNIX) echo " @-rm -f det vcreate src/detVer.cpp src/*.o src/dsa/*.o src/gui/*.o" >> Makefile;; esac |