version 1.27, 2009/07/06 10:22:06
|
version 1.30, 2010/04/30 09:00:45
|
Line 1
|
Line 1
|
VERSION=0.98k |
VERSION=0.98m |
COPYRIGHT=Copyright (C) 2002-2009 INED-EUROREVES-Institut de longévité |
COPYRIGHT=Copyright (C) 2002-2010 INED-EUROREVES-Institut de longevite |
IMACHSETUPVERSION=1 |
IMACHSETUPVERSION=1 |
|
|
|
# make _windowsonlinux=1 imachcygopt.exe |
|
# make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in) |
|
|
# make _linux=1 imachopt |
# make _linux=1 imachopt |
# make _linux=1 imach |
# make _linux=1 imach |
|
|
Line 17 IMACHSETUPVERSION=1
|
Line 20 IMACHSETUPVERSION=1
|
##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe" |
##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe" |
|
|
#CC= gcc -v |
#CC= gcc -v |
CC= gcc |
CC=$(GCC) |
|
GCC= gcc |
|
|
ifdef _macosx |
ifdef _macosx |
# Mac OS/X version |
# Mac OS/X version |
Line 33 UNIX2DOS= echo "Unix2dos "
|
Line 37 UNIX2DOS= echo "Unix2dos "
|
endif |
endif |
|
|
ifdef _windows |
ifdef _windows |
|
CC=c:\MinGW\bin\Mingw32-gcc |
|
|
# Windows cygwin version |
# Windows cygwin version |
LFLAGS= -g -mno-cygwin |
LFLAGS= -g -mno-cygwin |
CFLAGS= -g -mno-cygwin |
CFLAGS= -g -mno-cygwin |
LFLAGSOPT= -O3 -mno-cygwin |
LFLAGSOPT= -O3 -mno-cygwin |
CFLAGSOPT= -O3 -mno-cygwin |
CFLAGSOPT= -O3 -mno-cygwin |
UNIX2DOS= unix2dos |
UNIX2DOS= unix2dos |
SETUPCOMP= Compil32 |
CP= copy |
|
#SETUPCOMP= Compil32 |
##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe" |
##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe" |
##SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe" |
# cygwin SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe" |
|
SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe" |
|
endif |
|
|
|
ifdef _windowsonlinux |
|
GCC=/usr/bin/i586-pc-mingw32-gcc |
|
LFLAGS= -g |
|
CFLAGS= -g |
|
LFLAGSOPT= -O3 -lm |
|
CFLAGSOPT= -O3 |
|
CP= cp |
|
UNIX2DOS= unix2dos |
|
SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" |
endif |
endif |
|
|
ifdef _linux |
ifdef _linux |
#CFLAGS= -g -DUNIX -DDEBUGHESS |
#CFLAGS= -g -DUNIX -DDEBUGHESS |
CFLAGS= -g -DUNIX |
CFLAGS= -g -DUNIX |
LFLAGS= -g -lm |
LFLAGS= -g -lm |
|
IGSL= -I/usr/include/gsl |
LGSL= -lgsl -lgslcblas |
LGSL= -lgsl -lgslcblas |
CFLAGSOPT= -O3 -DUNIX |
CFLAGSOPT= -O3 -DUNIX |
LFLAGSOPT= -O3 -lm |
LFLAGSOPT= -O3 -lm |
Line 86 $(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
|
Line 106 $(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
|
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT) |
$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT) |
$(UNIX2DOS) $(TMPSETUPSCRIPT) |
|
|
|
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN) |
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN) |
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ |
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ |
Line 102 $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
|
Line 121 $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
|
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT) |
$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT) |
$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT) |
# $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT) |
|
|
$(TMPSETUPEXE): $(TMPSETUPSCRIPT) |
$(TMPSETUPEXE): $(TMPSETUPSCRIPT) |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
Line 113 $(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRI
|
Line 132 $(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRI
|
PARAM=mypar1 |
PARAM=mypar1 |
|
|
imachcyg-setup: imachcygopt.exe setup.iss |
imachcyg-setup: imachcygopt.exe setup.iss |
cp imachcygopt.exe imach.exe |
$(CP) imachcygopt.exe imach.exe |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
|
|
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE) |
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE) |
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss |
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss |
cp imachcygopt.exe imach.exe |
$(CP) imachcygopt.exe imach.exe |
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) |
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) |
|
|
simach : simach.o |
simach : simach.o |
$(CC) $(LFLAGS) $(LGSL) -o simach simach.o |
$(CC) $(LFLAGS) $(LGSL) -o simach simach.o |
simach.o : simach.c |
simach.o : simach.c |
$(CC) $(CFLAGS) -c simach.c |
$(CC) $(CFLAGS) -DGSL -c simach.c |
|
|
imach : imach.o |
imach : imach.o |
$(CC) $(LFLAGS) -o imach imach.o |
$(CC) $(LFLAGS) -o imach imach.o |
imach.o : imach.c |
imach.o : imach.c |
$(CC) $(CFLAGS) -c imach.c |
$(CC) $(CFLAGS) -DPOWELL -c imach.c |
|
|
|
|
|
imachsimplified : imachsimplified.o |
|
$(CC) $(LFLAGSOPT) -o imachsimplified imachsimplified.o |
|
imachsimplified.o : imachsimplified.c |
|
$(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c |
|
|
|
imachgsl : imachgsl.o |
|
$(CC) $(LFLAGS) $(LGSL) -o imachgsl imach.o |
|
imachgsl.o : imach.c |
|
$(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c |
|
|
imachopt : imachopt.o |
imachopt : imachopt.o |
$(CC) $(LFLAGSOPT) -o imachopt imachopt.o |
$(CC) $(LFLAGSOPT) -o imachopt imachopt.o |
ln -f imachopt imach |
ln -f imachopt imach |
imachopt.o : imach.c |
imachopt.o : imach.c |
$(CC) $(CFLAGSOPT) -o imachopt.o -c imach.c |
$(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c |
|
|
imachdmg : imachopt.o create-dmg |
imachdmg : imachopt.o create-dmg |
$(CC) $(LFLAGSOPT) -o imach imachopt.o |
$(CC) $(LFLAGSOPT) -o imach imachopt.o |