File:  [Local Repository] / imach / src / Makefile
Revision 1.13: download - view: text, annotated - select for diffs
Fri Sep 30 18:01:35 2005 UTC (19 years, 1 month ago) by lievre
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

    1: #CC= gcc -v
    2: CC= gcc
    3: 
    4: LFLAGS= -g -lm
    5: CFLAGS= -g 
    6: 
    7: #LFLAGS= -O3 -lm
    8: #CFLAGS= -O3 
    9: 
   10: #LFLAGS= -g -mno-cygwin
   11: #CFLAGS= -g
   12: 
   13: #LFLAGS= -O3 -mno-cygwin
   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: # Linux
   29: #SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
   30: ##SETUPCOMP=  "C:\Program Files\Inno Setup 4\Compil32.exe"
   31: #Windows cygwin
   32: # make imachcyg
   33: # make imach-setupe.exe
   34: # sortie dans Outpu/setup.exe
   35: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 3/Compil32.exe /usr/local/bin/Compil32
   36: ##SETUPCOMP=  "C:\Program Files\Inno Setup 3\Compil32.exe"
   37: SETUPCOMP= Compil32 
   38: TMPSETUPSCRIPT=setup.iss
   39: TMPSCRIPTIN=setup.iss.in
   40: APPNAME=IMaCh
   41: VERSION=0.98
   42: GNUPLOTVERSION=4.0
   43: IMACHSETUPVERSION=2
   44: LICENSE=Copying
   45: COPYRIGHT=Copyright (C)  2002-2003-2004-2005 INED-EUROREVES-Institut de longévité
   46: #TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
   47: TMPSETUPEXE=imach-setup.exe
   48: LICENSEFILE=$(LICENSE)
   49: INFOBEFOREFILE=Readme.txt
   50: 
   51: $(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
   52: 	$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
   53: 		s/@VERSION@/$(VERSION)/g; \
   54: 		s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
   55: 		s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
   56: 		s/@LICENSEFILE@/$(LICENSEFILE)/g; \
   57: 		s/@PACKAGE@/$(PACKAGE)/g; \
   58: 		s/@DICTLANG@/$(DICTLANG)/g; \
   59: 	   	s/@VERMAJOR@/$(VERMAJOR)/g; \
   60: 		s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
   61: 		$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
   62: 	unix2dos $(TMPSETUPSCRIPT)
   63: 
   64: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
   65: 	$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
   66: 
   67: PARAM=mypar1
   68: 
   69: imach : imach.o 
   70: 	$(CC) $(LFLAGS) -o imach imach.o
   71: imach.o : imach.c 
   72: 	$(CC) $(CFLAGS) -c imach.c
   73: 
   74: imachcyg : imachcyg.o  $(TMPSETUPSCRIPT) 
   75: 	$(CC) -mno-cygwin -o imach imachcyg.o
   76: imachcyg.o : imach.c 
   77: 	$(CC) -mno-cygwin -c -o imachcyg.o imach.c
   78: 
   79: imachw32.o : imach.c
   80: 	i386-mingw32-gcc -c imach.c -o imachw32.o
   81: imach.exe : imachw32.o 
   82: 	i386-mingw32-gcc  -mwindows -o imach.exe -lm imachw32.o
   83: 	i386-mingw32-strip imach.exe
   84: 
   85: $(PARAM).htm: imach $(PARAM).txt data1.txt
   86: 	./imach $(PARAM).txt
   87: 
   88: clean: 
   89: 	rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
   90: 	r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
   91: 	vr$(PARAM).txt *.gif imach.exe imach.o
   92: 
   93: 

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