version 1.17, 2006/01/30 10:04:09
|
version 1.29, 2009/10/29 13:19:55
|
Line 1
|
Line 1
|
#CC= gcc -v
|
VERSION=0.98l |
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"
|
CC=c:\MinGW\bin\Mingw32-gcc |
|
|
#SETUPCOMP= echo
|
# Windows cygwin version |
# Linux
|
LFLAGS= -g -mno-cygwin |
#LINUX#_SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
|
CFLAGS= -g -mno-cygwin |
##SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
|
LFLAGSOPT= -O3 -mno-cygwin |
|
CFLAGSOPT= -O3 -mno-cygwin |
#Windows cygwin
|
UNIX2DOS= unix2dos |
# make imachcyg
|
#SETUPCOMP= Compil32 |
# make imach-setup.exe
|
##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe" |
# sortie dans Output/setup.exe
|
# cygwin SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe" |
# ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
|
SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe" |
##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe"
|
endif |
|
|
SETUPCOMP= Compil32
|
ifdef _windowsonlinux |
TMPSETUPSCRIPT=setup.iss
|
GCC=/usr/bin/i586-pc-mingw32-gcc |
TMPNOREGSETUPSCRIPT=noreg-setup.iss
|
LFLAGS= -g |
TMPSCRIPTIN=setup.iss.in
|
CFLAGS= -g |
APPNAME=IMaCh
|
LFLAGSOPT= -O3 |
VERSION=0.98b
|
CFLAGSOPT= -O3 |
GNUPLOTVERSION=4.0
|
UNIX2DOS= unix2dos |
IMACHSETUPVERSION=1
|
SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" |
LICENSE=Copying
|
endif |
COPYRIGHT=Copyright (C) 2002-2006 INED-EUROREVES-Institut de longévité
|
|
TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
|
ifdef _linux |
LICENSEFILE=$(LICENSE)
|
#CFLAGS= -g -DUNIX -DDEBUGHESS |
INFOBEFOREFILE=README.txt
|
CFLAGS= -g -DUNIX |
|
LFLAGS= -g -lm |
$(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
|
LGSL= -lgsl -lgslcblas |
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
|
CFLAGSOPT= -O3 -DUNIX |
s/@NOTINNOREG@//g; \
|
LFLAGSOPT= -O3 -lm |
s/@NOREG@//g; \
|
UNIX2DOS= unix2dos |
s/@VERSION@/$(VERSION)/g; \
|
SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" |
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
|
endif |
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
|
|
s/@LICENSEFILE@/$(LICENSEFILE)/g; \
|
SED= sed |
s/@PACKAGE@/$(PACKAGE)/g; \
|
PACKAGE=imach |
s/@DICTLANG@/$(DICTLANG)/g; \
|
PROGRAM=IMaCh |
s/@VERMAJOR@/$(VERMAJOR)/g; \
|
|
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
|
|
$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
|
|
$(UNIX2DOS) $(TMPSETUPSCRIPT)
|
TMPSETUPSCRIPT=setup.iss |
|
TMPNOREGSETUPSCRIPT=noreg-setup.iss |
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
|
TMPSCRIPTIN=setup.iss.in |
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
|
APPLICATION=IMaCh |
s/@NOTINNOREG@/\\;/g; \
|
APPNAME=$(APPLICATION)-$(VERSION) |
s/@NOREG@/noreg-/g; \
|
GNUPLOTVERSION=4.0 |
s/@VERSION@/$(VERSION)/g; \
|
LICENSE=Copying |
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
|
TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe |
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
|
LICENSEFILE=$(LICENSE) |
s/@LICENSEFILE@/$(LICENSEFILE)/g; \
|
INFOBEFOREFILE=README.txt |
s/@PACKAGE@/$(PACKAGE)/g; \
|
|
s/@DICTLANG@/$(DICTLANG)/g; \
|
$(TMPSETUPSCRIPT): $(TMPSCRIPTIN) |
s/@VERMAJOR@/$(VERMAJOR)/g; \
|
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
|
s/@NOTINNOREG@//g; \ |
$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
|
s/@NOREG@//g; \ |
$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
|
s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ |
|
s/@VERSION@/$(VERSION)/g; \ |
$(TMPSETUPEXE): $(TMPSETUPSCRIPT)
|
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
|
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ |
|
s/@LICENSEFILE@/$(LICENSEFILE)/g; \ |
$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
|
s/@PACKAGE@/$(PACKAGE)/g; \ |
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
|
s/@DICTLANG@/$(DICTLANG)/g; \ |
|
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
PARAM=mypar1
|
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
|
$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT) |
imachcyg-setup: imachcygopt.exe setup.iss
|
|
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
|
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN) |
|
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ |
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
|
s/@NOTINNOREG@/\\;/g; \ |
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
|
s/@NOREG@/noreg-/g; \ |
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
|
s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ |
|
s/@VERSION@/$(VERSION)/g; \ |
imach : imach.o
|
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ |
$(CC) $(LFLAGS) -o imach imach.o
|
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ |
imach.o : imach.c
|
s/@LICENSEFILE@/$(LICENSEFILE)/g; \ |
$(CC) $(CFLAGS) -c imach.c
|
s/@PACKAGE@/$(PACKAGE)/g; \ |
|
s/@DICTLANG@/$(DICTLANG)/g; \ |
imachcyg : imachcyg.o
|
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
$(CC) $(LFLAGS) -o imach imachcyg.o
|
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
imachcyg.o : imach.c
|
$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT) |
$(CC) $(CFLAGS) -c -o imachcyg.o imach.c
|
# $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT) |
imachcygopt.exe : imachcygopt.o
|
|
$(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
|
$(TMPSETUPEXE): $(TMPSETUPSCRIPT) |
imachcygopt.o : imach.c
|
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
$(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
|
|
|
$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT) |
imachw32.o : imach.c
|
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) |
i386-mingw32-gcc -c imach.c -o imachw32.o
|
|
imach.exe : imachw32.o
|
PARAM=mypar1 |
i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
|
|
i386-mingw32-strip imach.exe
|
imachcyg-setup: imachcygopt.exe setup.iss |
|
copy imachcygopt.exe imach.exe |
|
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
$(PARAM).htm: imach $(PARAM).imach data1.txt
|
|
./imach $(PARAM).imach
|
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE) |
|
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss |
clean:
|
cp imachcygopt.exe imach.exe |
rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
|
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) |
r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
|
|
vr$(PARAM).txt *.gif imach.exe imach.o
|
simach : simach.o |
|
$(CC) $(LFLAGS) $(LGSL) -o simach simach.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 |
|
|
|
|