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