Annotation of imach/src/Makefile, revision 1.11
1.5 lievre 1: #CC= gcc -v
2: CC= gcc
1.11 ! brouard 3:
1.9 brouard 4: LFLAGS= -g -lm
5: CFLAGS= -g
1.3 lievre 6:
1.11 ! brouard 7: #LFLAGS= -O3 -lm
! 8: #CFLAGS= -O3
! 9:
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
! 15:
! 16: SED= sed
! 17: PACKAGE=imach
! 18: PROGRAM=IMaCh
! 19: ##ifdef DICTLANGUAGE
! 20: DICTNAME=$(PACKAGE) $(DICTLANGUAGE) Dictionary
! 21: ##else
! 22: ## ISERROR=1
! 23: ##endif
! 24:
! 25: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
! 26:
! 27: #SETUPCOMP= echo
! 28: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
! 29: #SETUPCOMP= Compil32
! 30: TMPSETUPSCRIPT=setup.iss
! 31: TMPSCRIPTIN=setup.iss.in
! 32: APPNAME=IMaCh
! 33: VERSION=0.97b
! 34: GNUPLOTVERSION=4.0
! 35: IMACHSETUPVERSION=2
! 36: LICENSE=Copying
! 37: COPYRIGHT=Copyright (C) 2002-2003-2004-2005 INED-EUROREVES-Institut de longévité
! 38: #TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
! 39: TMPSETUPEXE=imach-setup.exe
! 40: LICENSEFILE=$(LICENSE)
! 41: INFOBEFOREFILE=Readme.txt
! 42:
! 43: $(TMPSETUPSCRIPT):
! 44: $(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
! 45: s/@VERSION@/$(VERSION)/g; \
! 46: s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
! 47: s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
! 48: s/@LICENSEFILE@/$(LICENSEFILE)/g; \
! 49: s/@PACKAGE@/$(PACKAGE)/g; \
! 50: s/@DICTLANG@/$(DICTLANG)/g; \
! 51: s/@VERMAJOR@/$(VERMAJOR)/g; \
! 52: s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
! 53: $(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
! 54:
! 55: $(TMPSETUPEXE):
! 56: $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
1.2 lievre 57:
1.5 lievre 58: PARAM=mypar1
1.2 lievre 59:
60: imach : imach.o
61: $(CC) $(LFLAGS) -o imach imach.o
62: imach.o : imach.c
1.9 brouard 63: $(CC) $(CFLAGS) -c imach.c
1.7 lievre 64:
1.11 ! brouard 65: imachcyg : imachcyg.o $(TMPSETUPSCRIPT) $(TMPSETUPEXE)
! 66: $(CC) -mno-cygwin -o imach imachcyg.o
! 67: imachcyg.o : imach.c
! 68: $(CC) -mno-cygwin -c -o imachcyg.o imach.c
! 69:
! 70: imachw32.o : imach.c
! 71: i386-mingw32-gcc -c imach.c -o imachw32.o
! 72: imach.exe : imachw32.o
! 73: i386-mingw32-gcc -mwindows -o imach.exe -lm imachw32.o
! 74: i386-mingw32-strip imach.exe
1.7 lievre 75:
1.4 lievre 76: $(PARAM).htm: imach $(PARAM).txt data1.txt
77: ./imach $(PARAM).txt
1.2 lievre 78:
1.5 lievre 79: clean:
1.4 lievre 80: rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
81: r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
82: vr$(PARAM).txt *.gif imach.exe imach.o
1.2 lievre 83:
84:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>