Annotation of imach/src/Makefile, revision 1.14
1.5 lievre 1: #CC= gcc -v
2: CC= gcc
1.11 brouard 3:
1.14 ! brouard 4: # Mac OS/X version
! 5: LFLAGS= -O3 -lm -DUNIX
! 6: CFLAGS= -O3 -DUNIX
! 7: UNIX2DOS= echo "Unix2dos "
1.11 brouard 8:
1.14 ! brouard 9: # Windows cygwin version
1.7 lievre 10: #LFLAGS= -g -mno-cygwin
11: #CFLAGS= -g
1.6 lievre 12:
1.9 brouard 13: #LFLAGS= -O3 -mno-cygwin
1.11 brouard 14: #CFLAGS= -O3 -mno-cygwin
1.14 ! brouard 15: #LFLAGS= -g -lm
! 16: #CFLAGS= -g
! 17: #UNIX2DOS= unix2dos
! 18:
! 19: # Linux version
! 20: #LFLAGS= -O3 -lm
! 21: #CFLAGS= -O3
! 22: #UNIX2DOS= unix2dos
1.11 brouard 23:
24: SED= sed
25: PACKAGE=imach
26: PROGRAM=IMaCh
27: ##ifdef DICTLANGUAGE
28: DICTNAME=$(PACKAGE) $(DICTLANGUAGE) Dictionary
29: ##else
30: ## ISERROR=1
31: ##endif
32:
33: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
34:
35: #SETUPCOMP= echo
1.12 lievre 36: # Linux
37: #SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
38: ##SETUPCOMP= "C:\Program Files\Inno Setup 4\Compil32.exe"
39: #Windows cygwin
40: # make imachcyg
41: # make imach-setupe.exe
42: # sortie dans Outpu/setup.exe
43: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 3/Compil32.exe /usr/local/bin/Compil32
44: ##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe"
45: SETUPCOMP= Compil32
1.11 brouard 46: TMPSETUPSCRIPT=setup.iss
47: TMPSCRIPTIN=setup.iss.in
48: APPNAME=IMaCh
1.12 lievre 49: VERSION=0.98
1.11 brouard 50: GNUPLOTVERSION=4.0
51: IMACHSETUPVERSION=2
52: LICENSE=Copying
53: COPYRIGHT=Copyright (C) 2002-2003-2004-2005 INED-EUROREVES-Institut de longévité
54: #TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
55: TMPSETUPEXE=imach-setup.exe
56: LICENSEFILE=$(LICENSE)
57: INFOBEFOREFILE=Readme.txt
58:
1.13 lievre 59: $(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
1.11 brouard 60: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
61: s/@VERSION@/$(VERSION)/g; \
62: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
63: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
64: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
65: s/@PACKAGE@/$(PACKAGE)/g; \
66: s/@DICTLANG@/$(DICTLANG)/g; \
67: s/@VERMAJOR@/$(VERMAJOR)/g; \
68: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
69: $(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
1.14 ! brouard 70: $(UNIX2DOS) $(TMPSETUPSCRIPT)
1.11 brouard 71:
1.13 lievre 72: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
1.11 brouard 73: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
1.2 lievre 74:
1.5 lievre 75: PARAM=mypar1
1.2 lievre 76:
77: imach : imach.o
78: $(CC) $(LFLAGS) -o imach imach.o
79: imach.o : imach.c
1.9 brouard 80: $(CC) $(CFLAGS) -c imach.c
1.7 lievre 81:
1.12 lievre 82: imachcyg : imachcyg.o $(TMPSETUPSCRIPT)
1.11 brouard 83: $(CC) -mno-cygwin -o imach imachcyg.o
84: imachcyg.o : imach.c
85: $(CC) -mno-cygwin -c -o imachcyg.o imach.c
86:
87: imachw32.o : imach.c
88: i386-mingw32-gcc -c imach.c -o imachw32.o
89: imach.exe : imachw32.o
90: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
91: i386-mingw32-strip imach.exe
1.7 lievre 92:
1.4 lievre 93: $(PARAM).htm: imach $(PARAM).txt data1.txt
94: ./imach $(PARAM).txt
1.2 lievre 95:
1.5 lievre 96: clean:
1.4 lievre 97: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
98: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
99: vr$(PARAM).txt *.gif imach.exe imach.o
1.2 lievre 100:
101:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>