version 1.17, 2006/01/30 10:04:09
|
version 1.28, 2009/07/06 13:09:03
|
Line 1
|
Line 1
|
#CC= gcc -v
|
VERSION=0.98k |
CC= gcc
|
COPYRIGHT=Copyright (C) 2002-2009 INED-EUROREVES-Institut de longévité |
|
IMACHSETUPVERSION=1 |
# Mac OS/X version
|
|
#MACOSX#_LFLAGS= -O3 -lm -DUNIX
|
# make _linux=1 imachopt |
#MACOSX#_CFLAGS= -O3 -DUNIX
|
# make _linux=1 imach |
#MACOSX#_UNIX2DOS= echo "Unix2dos "
|
|
# Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
|
# make _macosx=1 imach |
# ./createdmg.sh imach imach098panther ./imach098Panther
|
# make _macosx=1 imachdmg |
# and directory ./imach098Panther contains package file imach098Panther.pkg
|
|
|
# Windows |
# Windows cygwin version
|
# make _windows=1 imachcyg |
#WINDOWS#_
|
# make _windows=1 imachcyg-setup (touch setup.iss.in) |
LFLAGS= -g -mno-cygwin
|
# make _windows=1 imachcyg-noreg-setup |
CFLAGS= -g -mno-cygwin
|
# sortie dans Output/setup.exe |
LFLAGSOPT= -O3 -mno-cygwin
|
# ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32 |
CFLAGSOPT= -O3 -mno-cygwin
|
##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe" |
UNIX2DOS= unix2dos
|
|
|
#CC= gcc -v |
# Linux version
|
CC=$(GCC) |
#LINUX#_
|
GCC= gcc |
#LINUX#_CFLAGS= -g -DUNIX
|
|
#LINUX#_LFLAGS= -g -lm
|
ifdef _macosx |
#LINUX#_CFLAGSOPT= -O3 -DUNIX -lm
|
# Mac OS/X version |
#LINUX#_LFLAGSOPT= -O3 -lm
|
LFLAGS= -O3 -lm -DUNIX |
#UNIX2DOS= unix2dos
|
CFLAGS= -O3 -DUNIX |
|
UNIX2DOS= echo "Unix2dos " |
SED= sed
|
# Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg |
PACKAGE=imach
|
# ./createdmg.sh imach imach098panther ./imach098Panther |
PROGRAM=IMaCh
|
# ./createdmg.sh imach imach098leopard ./imach098Leopard |
##ifdef DICTLANGUAGE
|
# and directory ./imach098Panther contains package file imach098Panther.pkg |
DICTNAME=$(PACKAGE) $(DICTLANGUAGE) Dictionary
|
#./create-dmg --window-size 500 300 --background ~/Projects/eclipse-osx-repackager/build/background.gif --icon-size 96 --volname "Hyper Foo" --icon "Applications" 380 205 --icon "Eclipse OS X Repackager" 110 205 test2.dmg /Users/andreyvit/Projects/eclipse-osx-repackager/temp/Eclipse\ OS\ X\ Repackager\ r10/ |
##else
|
# ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard |
## ISERROR=1
|
endif |
##endif
|
|
|
ifdef _windows |
##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
|
# Windows cygwin version |
|
LFLAGS= -g -mno-cygwin |
#SETUPCOMP= echo
|
CFLAGS= -g -mno-cygwin |
# Linux
|
LFLAGSOPT= -O3 -mno-cygwin |
#LINUX#_SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
|
CFLAGSOPT= -O3 -mno-cygwin |
##SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
|
UNIX2DOS= unix2dos |
|
SETUPCOMP= Compil32 |
#Windows cygwin
|
##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe" |
# make imachcyg
|
##SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe" |
# make imach-setup.exe
|
endif |
# sortie dans Output/setup.exe
|
|
# ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
|
ifdef _windowsonlinux |
##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe"
|
GCC=/usr/bin/i586-pc-mingw32-gcc |
|
LFLAGS= -g |
SETUPCOMP= Compil32
|
CFLAGS= -g |
TMPSETUPSCRIPT=setup.iss
|
LFLAGSOPT= -O3 |
TMPNOREGSETUPSCRIPT=noreg-setup.iss
|
CFLAGSOPT= -O3 |
TMPSCRIPTIN=setup.iss.in
|
UNIX2DOS= unix2dos |
APPNAME=IMaCh
|
SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" |
VERSION=0.98b
|
endif |
GNUPLOTVERSION=4.0
|
|
IMACHSETUPVERSION=1
|
ifdef _linux |
LICENSE=Copying
|
#CFLAGS= -g -DUNIX -DDEBUGHESS |
COPYRIGHT=Copyright (C) 2002-2006 INED-EUROREVES-Institut de longévité
|
CFLAGS= -g -DUNIX |
TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
|
LFLAGS= -g -lm |
LICENSEFILE=$(LICENSE)
|
LGSL= -lgsl -lgslcblas |
INFOBEFOREFILE=README.txt
|
CFLAGSOPT= -O3 -DUNIX |
|
LFLAGSOPT= -O3 -lm |
$(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
|
UNIX2DOS= unix2dos |
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
|
SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" |
s/@NOTINNOREG@//g; \
|
endif |
s/@NOREG@//g; \
|
|
s/@VERSION@/$(VERSION)/g; \
|
SED= sed |
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
|
PACKAGE=imach |
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
|
PROGRAM=IMaCh |
s/@LICENSEFILE@/$(LICENSEFILE)/g; \
|
|
s/@PACKAGE@/$(PACKAGE)/g; \
|
|
s/@DICTLANG@/$(DICTLANG)/g; \
|
|
s/@VERMAJOR@/$(VERMAJOR)/g; \
|
TMPSETUPSCRIPT=setup.iss |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
|
TMPNOREGSETUPSCRIPT=noreg-setup.iss |
$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
|
TMPSCRIPTIN=setup.iss.in |
$(UNIX2DOS) $(TMPSETUPSCRIPT)
|
APPLICATION=IMaCh |
|
APPNAME=$(APPLICATION)-$(VERSION) |
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
|
GNUPLOTVERSION=4.0 |
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
|
LICENSE=Copying |
s/@NOTINNOREG@/\\;/g; \
|
TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe |
s/@NOREG@/noreg-/g; \
|
LICENSEFILE=$(LICENSE) |
s/@VERSION@/$(VERSION)/g; \
|
INFOBEFOREFILE=README.txt |
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
|
|
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
|
$(TMPSETUPSCRIPT): $(TMPSCRIPTIN) |
s/@LICENSEFILE@/$(LICENSEFILE)/g; \
|
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ |
s/@PACKAGE@/$(PACKAGE)/g; \
|
s/@NOTINNOREG@//g; \ |
s/@DICTLANG@/$(DICTLANG)/g; \
|
s/@NOREG@//g; \ |
s/@VERMAJOR@/$(VERMAJOR)/g; \
|
s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
|
s/@VERSION@/$(VERSION)/g; \ |
$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
|
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ |
$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
|
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ |
|
s/@LICENSEFILE@/$(LICENSEFILE)/g; \ |
$(TMPSETUPEXE): $(TMPSETUPSCRIPT)
|
s/@PACKAGE@/$(PACKAGE)/g; \ |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
|
s/@DICTLANG@/$(DICTLANG)/g; \ |
|
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
|
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
|
$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT) |
|
$(UNIX2DOS) $(TMPSETUPSCRIPT) |
PARAM=mypar1
|
|
|
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN) |
imachcyg-setup: imachcygopt.exe setup.iss
|
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
|
s/@NOTINNOREG@/\\;/g; \ |
|
s/@NOREG@/noreg-/g; \ |
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
|
s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ |
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
|
s/@VERSION@/$(VERSION)/g; \ |
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
|
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ |
|
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ |
imach : imach.o
|
s/@LICENSEFILE@/$(LICENSEFILE)/g; \ |
$(CC) $(LFLAGS) -o imach imach.o
|
s/@PACKAGE@/$(PACKAGE)/g; \ |
imach.o : imach.c
|
s/@DICTLANG@/$(DICTLANG)/g; \ |
$(CC) $(CFLAGS) -c imach.c
|
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
|
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
imachcyg : imachcyg.o
|
$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT) |
$(CC) $(LFLAGS) -o imach imachcyg.o
|
$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT) |
imachcyg.o : imach.c
|
|
$(CC) $(CFLAGS) -c -o imachcyg.o imach.c
|
$(TMPSETUPEXE): $(TMPSETUPSCRIPT) |
imachcygopt.exe : imachcygopt.o
|
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
$(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
|
|
imachcygopt.o : imach.c
|
$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT) |
$(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
|
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) |
|
|
imachw32.o : imach.c
|
PARAM=mypar1 |
i386-mingw32-gcc -c imach.c -o imachw32.o
|
|
imach.exe : imachw32.o
|
imachcyg-setup: imachcygopt.exe setup.iss |
i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
|
cp imachcygopt.exe imach.exe |
i386-mingw32-strip imach.exe
|
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
|
|
|
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE) |
$(PARAM).htm: imach $(PARAM).imach data1.txt
|
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss |
./imach $(PARAM).imach
|
cp imachcygopt.exe imach.exe |
|
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) |
clean:
|
|
rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
|
simach : simach.o |
r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
|
$(CC) $(LFLAGS) $(LGSL) -o simach simach.o |
vr$(PARAM).txt *.gif imach.exe imach.o
|
simach.o : simach.c |
|
$(CC) $(CFLAGS) -c simach.c |
|
|
|
imach : imach.o |
|
$(CC) $(LFLAGS) -o imach imach.o |
|
imach.o : imach.c |
|
$(CC) $(CFLAGS) -c imach.c |
|
|
|
imachopt : imachopt.o |
|
$(CC) $(LFLAGSOPT) -o imachopt imachopt.o |
|
ln -f imachopt imach |
|
imachopt.o : imach.c |
|
$(CC) $(CFLAGSOPT) -o imachopt.o -c imach.c |
|
|
|
imachdmg : imachopt.o create-dmg |
|
$(CC) $(LFLAGSOPT) -o imach imachopt.o |
|
cp imach imach098Leopard/bin |
|
./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach098Leopard |
|
|
|
|
|
imachcyg : imachcyg.o strsep.o |
|
$(CC) $(LFLAGS) -o imach imachcyg.o strsep.o |
|
imachcyg.o : imach.c |
|
$(CC) $(CFLAGS) -c -o imachcyg.o imach.c |
|
imachcygopt.exe : imachcygopt.o strsep.o |
|
$(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o strsep.o |
|
imachcygopt.o : imach.c |
|
$(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c |
|
strsep.o : strsep.c |
|
$(CC) $(CFLAGSOPT) -c -o strsep.o strsep.c |
|
|
|
imachw32.o : imach.c |
|
i386-mingw32-gcc -c imach.c -o imachw32.o |
|
imach.exe : imachw32.o |
|
i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o |
|
i386-mingw32-strip imach.exe |
|
|
|
|
|
$(PARAM).htm: imach $(PARAM).imach data1.txt |
|
./imach $(PARAM).imach |
|
|
|
clean: |
|
rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \ |
|
r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \ |
|
vr$(PARAM).txt *.gif imach.exe imach.o |
|
|
|
|