File:  [Local Repository] / imach / src / Makefile
Revision 1.16: download - view: text, annotated - select for diffs
Fri Jan 27 20:17:30 2006 UTC (18 years, 9 months ago) by brouard
Branches: MAIN
CVS tags: HEAD
noreg added

    1: #CC= gcc -v
    2: CC= gcc
    3: 
    4: # Mac OS/X version
    5: #MACOSX#_LFLAGS= -O3 -lm -DUNIX
    6: #MACOSX#_CFLAGS= -O3 -DUNIX
    7: #MACOSX#_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: #WINDOWS#_
   14: LFLAGS= -g -mno-cygwin
   15: CFLAGS= -g -mno-cygwin
   16: LFLAGSOPT= -O3 -mno-cygwin
   17: CFLAGSOPT= -O3 -mno-cygwin
   18: UNIX2DOS= unix2dos
   19: 
   20: # Linux version
   21: #LINUX#_
   22: #LINUX#_CFLAGS= -g -DUNIX
   23: #LINUX#_LFLAGS= -g -lm
   24: #LINUX#_CFLAGSOPT= -O3 -DUNIX -lm
   25: #LINUX#_LFLAGSOPT= -O3 -lm
   26: #UNIX2DOS= unix2dos
   27: 
   28: SED= sed
   29: PACKAGE=imach
   30: PROGRAM=IMaCh
   31: ##ifdef DICTLANGUAGE
   32:   DICTNAME=$(PACKAGE) $(DICTLANGUAGE) Dictionary
   33: ##else
   34: ##  ISERROR=1
   35: ##endif
   36: 
   37: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
   38: 
   39: #SETUPCOMP= echo 
   40: # Linux
   41: #LINUX#_SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
   42: ##SETUPCOMP=  "C:\Program Files\Inno Setup 4\Compil32.exe"
   43: 
   44: #Windows cygwin
   45: # make imachcyg
   46: # make imach-setup.exe
   47: # sortie dans Output/setup.exe
   48: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
   49: ##SETUPCOMP=  "C:\Program Files\Inno Setup 3\Compil32.exe"
   50: 
   51: SETUPCOMP= Compil32 
   52: TMPSETUPSCRIPT=setup.iss
   53: TMPNOREGSETUPSCRIPT=noreg-setup.iss
   54: TMPSCRIPTIN=setup.iss.in
   55: APPNAME=IMaCh
   56: VERSION=0.98b
   57: GNUPLOTVERSION=4.0
   58: IMACHSETUPVERSION=1
   59: LICENSE=Copying
   60: COPYRIGHT=Copyright (C)  2002-2006 INED-EUROREVES-Institut de longévité
   61: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
   62: LICENSEFILE=$(LICENSE)
   63: INFOBEFOREFILE=README.txt
   64: 
   65: $(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
   66: 	$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
   67: 		s/@NOTINNOREG@//g; \
   68: 		s/@NOREG@//g; \
   69: 		s/@VERSION@/$(VERSION)/g; \
   70: 		s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
   71: 		s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
   72: 		s/@LICENSEFILE@/$(LICENSEFILE)/g; \
   73: 		s/@PACKAGE@/$(PACKAGE)/g; \
   74: 		s/@DICTLANG@/$(DICTLANG)/g; \
   75: 	   	s/@VERMAJOR@/$(VERMAJOR)/g; \
   76: 		s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
   77: 		$(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
   78: 	$(UNIX2DOS) $(TMPSETUPSCRIPT)
   79: 
   80: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
   81: 	$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
   82: 		s/@NOTINNOREG@/\\;/g; \
   83: 		s/@NOREG@/noreg-/g; \
   84: 		s/@VERSION@/$(VERSION)/g; \
   85: 		s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
   86: 		s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
   87: 		s/@LICENSEFILE@/$(LICENSEFILE)/g; \
   88: 		s/@PACKAGE@/$(PACKAGE)/g; \
   89: 		s/@DICTLANG@/$(DICTLANG)/g; \
   90: 	   	s/@VERMAJOR@/$(VERMAJOR)/g; \
   91: 		s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
   92: 		$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
   93: 	$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
   94: 
   95: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
   96: 	$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
   97: 
   98: $(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
   99: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  100: 
  101: PARAM=mypar1
  102: 
  103: imachcyg-setup : imachcygopt imachcygopt.o setup.iss.in $(TMPSETUPEXE)
  104: 
  105: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
  106: imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
  107: 
  108: imach : imach.o 
  109: 	$(CC) $(LFLAGS) -o imach imach.o
  110: imach.o : imach.c 
  111: 	$(CC) $(CFLAGS) -c imach.c
  112: 
  113: imachcyg : imachcyg.o  
  114: 	$(CC) $(LFLAGS) -o imach imachcyg.o
  115: imachcyg.o : imach.c 
  116: 	$(CC) $(CFLAGS)  -c -o imachcyg.o imach.c
  117: imachcygopt : imachcygopt.o  
  118: 	$(CC) $(LFLAGSOPT) -o imach.exe imachcygopt.o
  119: imachcygopt.o : imach.c 
  120: 	$(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
  121: 
  122: imachw32.o : imach.c
  123: 	i386-mingw32-gcc -c imach.c -o imachw32.o
  124: imach.exe : imachw32.o 
  125: 	i386-mingw32-gcc  -mwindows -o imach.exe -lm imachw32.o
  126: 	i386-mingw32-strip imach.exe
  127: 
  128: 
  129: $(PARAM).htm: imach $(PARAM).imach data1.txt
  130: 	./imach $(PARAM).imach
  131: 
  132: clean: 
  133: 	rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
  134: 	r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
  135: 	vr$(PARAM).txt *.gif imach.exe imach.o
  136: 
  137: 

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