version 1.19, 2006/02/09 20:19:28
|
version 1.22, 2006/03/15 18:31:22
|
Line 1
|
Line 1
|
#CC= gcc -v
|
VERSION=0.98e |
CC= gcc
|
COPYRIGHT=Copyright (C) 2002-2006 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 |
# ./createdmg.sh imach imach098panther ./imach098Panther
|
|
# and directory ./imach098Panther contains package file imach098Panther.pkg
|
# Windows |
|
# make _windows=1 imachcyg |
# Windows cygwin version
|
# make _windows=1 imach-setup.exe |
#WINDOWS#_
|
# make _windows=1 imach-noreg-setup.exe |
LFLAGS= -g -mno-cygwin
|
# sortie dans Output/setup.exe |
CFLAGS= -g -mno-cygwin
|
# ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32 |
LFLAGSOPT= -O3 -mno-cygwin
|
##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe" |
CFLAGSOPT= -O3 -mno-cygwin
|
|
UNIX2DOS= unix2dos
|
#CC= gcc -v |
|
CC= gcc |
# Linux version
|
|
#LINUX#_
|
ifdef _macosx |
#LINUX#_CFLAGS= -g -DUNIX
|
# Mac OS/X version |
#LINUX#_LFLAGS= -g -lm
|
LFLAGS= -O3 -lm -DUNIX |
#LINUX#_CFLAGSOPT= -O3 -DUNIX -lm
|
CFLAGS= -O3 -DUNIX |
#LINUX#_LFLAGSOPT= -O3 -lm
|
UNIX2DOS= echo "Unix2dos " |
#UNIX2DOS= unix2dos
|
# Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg |
|
# ./createdmg.sh imach imach098panther ./imach098Panther |
SED= sed
|
# and directory ./imach098Panther contains package file imach098Panther.pkg |
PACKAGE=imach
|
endif |
PROGRAM=IMaCh
|
|
##ifdef DICTLANGUAGE
|
ifdef _windows |
DICTNAME=$(PACKAGE) $(DICTLANGUAGE) Dictionary
|
# Windows cygwin version |
##else
|
LFLAGS= -g -mno-cygwin |
## ISERROR=1
|
CFLAGS= -g -mno-cygwin |
##endif
|
LFLAGSOPT= -O3 -mno-cygwin |
|
CFLAGSOPT= -O3 -mno-cygwin |
##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
|
UNIX2DOS= unix2dos |
|
SETUPCOMP= Compil32 |
#SETUPCOMP= echo
|
##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe" |
# Linux
|
##SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe" |
#LINUX#_SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
|
endif |
##SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
|
|
|
ifdef _linux |
#Windows cygwin
|
CFLAGS= -g -DUNIX |
# make imachcyg
|
LFLAGS= -g -lm |
# make imach-setup.exe
|
CFLAGSOPT= -O3 -DUNIX |
# sortie dans Output/setup.exe
|
LFLAGSOPT= -O3 -lm |
# ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
|
UNIX2DOS= unix2dos |
##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe"
|
SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe" |
|
endif |
SETUPCOMP= Compil32
|
|
TMPSETUPSCRIPT=setup.iss
|
SED= sed |
TMPNOREGSETUPSCRIPT=noreg-setup.iss
|
PACKAGE=imach |
TMPSCRIPTIN=setup.iss.in
|
PROGRAM=IMaCh |
APPLICATION=IMaCh
|
|
APPNAME=$(APPLICATION)-$(VERSION)
|
|
VERSION=0.98b
|
|
GNUPLOTVERSION=4.0
|
TMPSETUPSCRIPT=setup.iss |
IMACHSETUPVERSION=2
|
TMPNOREGSETUPSCRIPT=noreg-setup.iss |
LICENSE=Copying
|
TMPSCRIPTIN=setup.iss.in |
COPYRIGHT=Copyright (C) 2002-2006 INED-EUROREVES-Institut de longévité
|
APPLICATION=IMaCh |
TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
|
APPNAME=$(APPLICATION)-$(VERSION) |
LICENSEFILE=$(LICENSE)
|
GNUPLOTVERSION=4.0 |
INFOBEFOREFILE=README.txt
|
LICENSE=Copying |
|
TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe |
$(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
|
LICENSEFILE=$(LICENSE) |
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
|
INFOBEFOREFILE=README.txt |
s/@NOTINNOREG@//g; \
|
|
s/@NOREG@//g; \
|
$(TMPSETUPSCRIPT): $(TMPSCRIPTIN) |
s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
|
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ |
s/@VERSION@/$(VERSION)/g; \
|
s/@NOTINNOREG@//g; \ |
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
|
s/@NOREG@//g; \ |
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
|
s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ |
s/@LICENSEFILE@/$(LICENSEFILE)/g; \
|
s/@VERSION@/$(VERSION)/g; \ |
s/@PACKAGE@/$(PACKAGE)/g; \
|
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ |
s/@DICTLANG@/$(DICTLANG)/g; \
|
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ |
s/@VERMAJOR@/$(VERMAJOR)/g; \
|
s/@LICENSEFILE@/$(LICENSEFILE)/g; \ |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
|
s/@PACKAGE@/$(PACKAGE)/g; \ |
$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
|
s/@DICTLANG@/$(DICTLANG)/g; \ |
$(UNIX2DOS) $(TMPSETUPSCRIPT)
|
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
|
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
|
$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT) |
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
|
$(UNIX2DOS) $(TMPSETUPSCRIPT) |
s/@NOTINNOREG@/\\;/g; \
|
|
s/@NOREG@/noreg-/g; \
|
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN) |
s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
|
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \ |
s/@VERSION@/$(VERSION)/g; \
|
s/@NOTINNOREG@/\\;/g; \ |
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
|
s/@NOREG@/noreg-/g; \ |
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
|
s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \ |
s/@LICENSEFILE@/$(LICENSEFILE)/g; \
|
s/@VERSION@/$(VERSION)/g; \ |
s/@PACKAGE@/$(PACKAGE)/g; \
|
s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \ |
s/@DICTLANG@/$(DICTLANG)/g; \
|
s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \ |
s/@VERMAJOR@/$(VERMAJOR)/g; \
|
s/@LICENSEFILE@/$(LICENSEFILE)/g; \ |
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
|
s/@PACKAGE@/$(PACKAGE)/g; \ |
$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
|
s/@DICTLANG@/$(DICTLANG)/g; \ |
$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
|
s/@VERMAJOR@/$(VERMAJOR)/g; \ |
|
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \ |
$(TMPSETUPEXE): $(TMPSETUPSCRIPT)
|
$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT) |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
|
$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT) |
|
|
$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
|
$(TMPSETUPEXE): $(TMPSETUPSCRIPT) |
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
|
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
|
|
PARAM=mypar1
|
$(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT) |
|
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) |
imachcyg-setup: imachcygopt.exe setup.iss
|
|
cp imachcygopt.exe imach.exe
|
PARAM=mypar1 |
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
|
|
|
imachcyg-setup: imachcygopt.exe setup.iss |
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
|
cp imachcygopt.exe imach.exe |
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
|
$(SETUPCOMP) /cc $(TMPSETUPSCRIPT) |
cp imachcygopt.exe imach.exe
|
|
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
|
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE) |
|
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss |
imach : imach.o
|
cp imachcygopt.exe imach.exe |
$(CC) $(LFLAGS) -o imach imach.o
|
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT) |
imach.o : imach.c
|
|
$(CC) $(CFLAGS) -c imach.c
|
imach : imach.o |
|
$(CC) $(LFLAGS) -o imach imach.o |
imachcyg : imachcyg.o strsep.o
|
imach.o : imach.c |
$(CC) $(LFLAGS) -o imach imachcyg.o strsep.o
|
$(CC) $(CFLAGS) -c imach.c |
imachcyg.o : imach.c
|
|
$(CC) $(CFLAGS) -c -o imachcyg.o imach.c
|
imachopt : imachopt.o |
imachcygopt.exe : imachcygopt.o strsep.o
|
$(CC) $(LFLAGSOPT) -o imachopt imachopt.o |
$(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o strsep.o
|
ln -f imachopt imach |
imachcygopt.o : imach.c
|
imachopt.o : imach.c |
$(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
|
$(CC) $(CFLAGSOPT) -o imachopt.o -c imach.c |
strsep.o : strsep.c
|
|
$(CC) $(CFLAGSOPT) -c -o strsep.o strsep.c
|
imachcyg : imachcyg.o strsep.o |
|
$(CC) $(LFLAGS) -o imach imachcyg.o strsep.o |
imachw32.o : imach.c
|
imachcyg.o : imach.c |
i386-mingw32-gcc -c imach.c -o imachw32.o
|
$(CC) $(CFLAGS) -c -o imachcyg.o imach.c |
imach.exe : imachw32.o
|
imachcygopt.exe : imachcygopt.o strsep.o |
i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
|
$(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o strsep.o |
i386-mingw32-strip imach.exe
|
imachcygopt.o : imach.c |
|
$(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c |
|
strsep.o : strsep.c |
$(PARAM).htm: imach $(PARAM).imach data1.txt
|
$(CC) $(CFLAGSOPT) -c -o strsep.o strsep.c |
./imach $(PARAM).imach
|
|
|
imachw32.o : imach.c |
clean:
|
i386-mingw32-gcc -c imach.c -o imachw32.o |
rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
|
imach.exe : imachw32.o |
r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
|
i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o |
vr$(PARAM).txt *.gif imach.exe imach.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 |
|
|
|
|