File:  [Local Repository] / imach / src / Makefile
Revision 1.14: download - view: text, annotated - select for diffs
Mon Oct 17 15:30:26 2005 UTC (19 years ago) by brouard
Branches: MAIN
CVS tags: HEAD
Makefile for Mac OS/X

    1: #CC= gcc -v
    2: CC= gcc
    3: 
    4: # Mac OS/X version
    5: LFLAGS= -O3 -lm -DUNIX
    6: CFLAGS= -O3 -DUNIX
    7: UNIX2DOS= echo "Unix2dos " 
    8: 
    9: # Windows cygwin version
   10: #LFLAGS= -g -mno-cygwin
   11: #CFLAGS= -g
   12: 
   13: #LFLAGS= -O3 -mno-cygwin
   14: #CFLAGS= -O3 -mno-cygwin
   15: #LFLAGS= -g -lm
   16: #CFLAGS= -g 
   17: #UNIX2DOS= unix2dos
   18: 
   19: # Linux version
   20: #LFLAGS= -O3 -lm
   21: #CFLAGS= -O3 
   22: #UNIX2DOS= unix2dos
   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 
   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 
   46: TMPSETUPSCRIPT=setup.iss
   47: TMPSCRIPTIN=setup.iss.in
   48: APPNAME=IMaCh
   49: VERSION=0.98
   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: 
   59: $(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
   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)
   70: 	$(UNIX2DOS) $(TMPSETUPSCRIPT)
   71: 
   72: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
   73: 	$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
   74: 
   75: PARAM=mypar1
   76: 
   77: imach : imach.o 
   78: 	$(CC) $(LFLAGS) -o imach imach.o
   79: imach.o : imach.c 
   80: 	$(CC) $(CFLAGS) -c imach.c
   81: 
   82: imachcyg : imachcyg.o  $(TMPSETUPSCRIPT) 
   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
   92: 
   93: $(PARAM).htm: imach $(PARAM).txt data1.txt
   94: 	./imach $(PARAM).txt
   95: 
   96: clean: 
   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
  100: 
  101: 

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