File:  [Local Repository] / imach / src / Makefile
Revision 1.15: download - view: text, annotated - select for diffs
Tue Oct 25 12:30:27 2005 UTC (19 years ago) by brouard
Branches: MAIN
CVS tags: HEAD
(Module): Added Imach98.pmsp and howto crete a dmg

    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: # 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
   11: 
   12: # Windows cygwin version
   13: #LFLAGS= -g -mno-cygwin
   14: #CFLAGS= -g
   15: 
   16: #LFLAGS= -O3 -mno-cygwin
   17: #CFLAGS= -O3 -mno-cygwin
   18: #LFLAGS= -g -lm
   19: #CFLAGS= -g 
   20: #UNIX2DOS= unix2dos
   21: 
   22: # Linux version
   23: #LFLAGS= -O3 -lm
   24: #CFLAGS= -O3 
   25: #UNIX2DOS= unix2dos
   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 
   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 
   49: TMPSETUPSCRIPT=setup.iss
   50: TMPSCRIPTIN=setup.iss.in
   51: APPNAME=IMaCh
   52: VERSION=0.98
   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: 
   62: $(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
   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)
   73: 	$(UNIX2DOS) $(TMPSETUPSCRIPT)
   74: 
   75: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
   76: 	$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
   77: 
   78: PARAM=mypar1
   79: 
   80: imach : imach.o 
   81: 	$(CC) $(LFLAGS) -o imach imach.o
   82: imach.o : imach.c 
   83: 	$(CC) $(CFLAGS) -c imach.c
   84: 
   85: imachcyg : imachcyg.o  $(TMPSETUPSCRIPT) 
   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
   95: 
   96: $(PARAM).htm: imach $(PARAM).txt data1.txt
   97: 	./imach $(PARAM).txt
   98: 
   99: clean: 
  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
  103: 
  104: 

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