Annotation of imach/src/Makefile, revision 1.15

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>