File:  [Local Repository] / imach / src / Makefile
Revision 1.49: download - view: text, annotated - select for diffs
Tue Dec 23 11:17:26 2014 UTC (9 years, 6 months ago) by brouard
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

    1: VERSION=0.98p
    2: COPYRIGHT=Copyright (C)  2002-2015 INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121)
    3: IMACHSETUPVERSION=ilc64
    4: 
    5: #       Linux
    6: # make _linux=1 imachopt
    7: # make _linux=1 imach
    8: #
    9: # make _linux32onosx=1 imachopt
   10: # make _linux64onosx=1 imachopt
   11: 
   12: #       OS/X
   13: # make _intel64onosx=1 imachopt
   14: # make _intel32onosx=1 imachopt
   15: # make _intelUNBonosx=1 imachdmg # Not implemented (not useful)
   16: # make _macosx=1 imach
   17: # make _macosx=1 imachopt
   18: # make _macosx=1 imachdmg
   19: #  valgrind  --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ~/Documents/imachcvs/imach/src/imach-1.129cvsmac radlc-1.129.imach
   20: 
   21: #        Windows
   22: # make _windowsonosx=1 imachILC64-setup (touch setup.iss.in) #binary should have been compiled on Windows with cl
   23: # make _windowsonosx=1 imachMVC-setup (touch setup.iss.in) #binary should have been compiled on Windows with cl
   24: # make imachMVC-noreg-setup
   25: #
   26: #        Windows cross-compiled mw64
   27: # make _mw64onsox=1 imachcyg-setup
   28: #
   29: # make _windows=1 imachcyg
   30: # make _windows=1 imachcyg-setup (touch setup.iss.in)
   31: # make _windows=1 imachcyg-noreg-setup
   32: #
   33: # make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
   34: # make _windowsonlinux=1 imachcyg-noreg-setup
   35: #
   36: # make _windowscl=1 imachclopt
   37: 
   38: #
   39: # sortie dans Output/setup.exe
   40: # ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
   41: ##SETUPCOMP=  "C:\Program Files\Inno Setup 3\Compil32.exe"
   42: #TESTFILE=$$HOME/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
   43: #TESTFILE=$(HOME)/Documents/Recherches/REVES/carol/carol-june2014/educadlmwt24.imach
   44: TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-wopowell.imach
   45: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
   46: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
   47: #CC= gcc -v
   48: CC=$(GCC)
   49: GCC= gcc
   50: 
   51: ifdef _macosx
   52: # Mac OS/X version
   53: LFLAGS= -g -lm 
   54: CFLAGS= -g -DDEBUG 
   55: LFLAGSOPT= -O3 -lm 
   56: CFLAGSOPT= -O3 
   57: UNIX2DOS= echo "Unix2dos " 
   58: DSYMUTIL= dsymutil
   59: STRIP= strip
   60: BINVERSION=OSX
   61: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
   62: # ./createdmg.sh imach imach098panther ./imach098Panther
   63: # ./createdmg.sh imach imach098leopard ./imach098Leopard
   64: # and directory ./imach098Panther contains package file imach098Panther.pkg
   65: #./create-dmg --window-size 500 300 --background ~/Projects/eclipse-osx-repackager/build/background.gif --icon-size 96 --volname "Hyper Foo" --icon "Applications" 380 205 --icon "Eclipse OS X Repackager" 110 205 test2.dmg /Users/andreyvit/Projects/eclipse-osx-repackager/temp/Eclipse\ OS\ X\ Repackager\ r10/
   66: # ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard
   67: endif
   68: 
   69: ifdef _windows
   70: CC=c:\MinGW\bin\Mingw32-gcc
   71: 
   72: # Windows cygwin version
   73: LFLAGS= -g -mno-cygwin
   74: CFLAGS= -g -mno-cygwin
   75: LFLAGSOPT= -O3 -mno-cygwin
   76: CFLAGSOPT= -O3 -mno-cygwin
   77: UNIX2DOS= unix2dos
   78: CP= copy
   79: BINVERSION=CYGWIN
   80: #SETUPCOMP= Compil32 
   81: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
   82: # cygwin SETUPCOMP=  "C:\Program Files\Inno Setup 4\Compil32.exe"
   83: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
   84: endif
   85: 
   86: ifdef _windowsonlinux
   87: GCC=/usr/bin/i586-pc-mingw32-gcc
   88: LFLAGS= -g
   89: CFLAGS= -g
   90: LFLAGSOPT= -O3 -lm
   91: CFLAGSOPT= -O3
   92: CP= cp
   93: UNIX2DOS= unix2dos
   94: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
   95: BINVERSION=WINDOWSonLINUX
   96: endif
   97: 
   98: ifdef _windowsonosx
   99: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
  100: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
  101: GCC=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-gcc-4.8.0
  102: STRIP=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-strip
  103: LFLAGS= -g
  104: CFLAGS= -g
  105: LFLAGSOPT= -O3 -s
  106: CFLAGSOPT= -O3
  107: UNIX2DOS= unix2dos
  108: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  109: CP= cp
  110: BINVERSION=WIN32onOSX
  111: endif
  112: 
  113: ifdef _mw64onosx
  114: GCC=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-gcc-4.9.0
  115: STRIP=/usr/local/mingw-w64-bin_i686-darwin_20130622/bin/x86_64-w64-mingw32-strip
  116: LFLAGS= -g
  117: CFLAGS= -g
  118: LFLAGSOPT= -O3 -lm -s
  119: CFLAGSOPT= -O3
  120: UNIX2DOS= unix2dos
  121: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  122: CP= cp
  123: BINVERSION=w64-mingw32-x86-64-bin
  124: endif
  125: 
  126: ifdef _windowscl
  127: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
  128: endif
  129: 
  130: # make _intel64onosx=1 imachopt
  131: #source /opt/intel/bin/iccvars.sh intel64
  132: ifdef _intel64onosx
  133: GCC=/opt/intel/bin/icc
  134: CFLAGS= -m64 -g -std=c99
  135: LFLAGS= -g -m64
  136: CFLAGSOPT= -O3 -m64 -g -std=c99
  137: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh intel64; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
  138: include makeenv
  139: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
  140: LFLAGSOPT= -O3 -m64
  141: UNIX2DOS= unix2dos
  142: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  143: CP= cp
  144: BINVERSION=osx-intel-x86-64-bin
  145: #imach_64$(VERSION)
  146: #
  147: endif
  148: 
  149: ifdef _intel32onosx
  150: GCC=/opt/intel/bin/icc
  151: CFLAGS= -m32 -g -std=c99
  152: LFLAGS= -g -m32
  153: CFLAGSOPT= -O3 -m32 -g -std=c99
  154: IGNORE :=$(shell bash -c "source /opt/intel/bin/iccvars.sh ia32; env | sed 's/=/:=/' | sed 's/^/export /' > makeenv")
  155: include makeenv
  156: #lipo -create -arch i386 HelloWorld_32 -arch x86_64 HelloWorld_64 -output HelloWorld
  157: #lipo -create -arch i386 imach_32$(VERSION) -arch x86_64 imach_64$(VERSION) -output imach$(VERSION)
  158: LFLAGSOPT= -O3 -m32
  159: UNIX2DOS= unix2dos
  160: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  161: CP= cp
  162: BINVERSION=osx-intel-ia32-bin
  163: endif
  164: 
  165: ifdef _linux64onosx
  166: GCC=/usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-gcc
  167: STRIP=/usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-strip
  168: LFLAGS= -g
  169: CFLAGS= -g
  170: LFLAGSOPT= -O3 -lm -s
  171: CFLAGSOPT= -O3
  172: UNIX2DOS= unix2dos
  173: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  174: CP= cp
  175: BINVERSION=linux-x86-64-bin
  176: endif
  177: 
  178: ifdef _linux32onosx
  179: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
  180: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
  181: GCC=/usr/local/gcc-4.8.1-for-linux32/bin/i586-pc-linux-gcc
  182: STRIP=/usr/local/gcc-4.8.1-for-linux32/bin/i586-pc-linux-strip
  183: LFLAGS= -g
  184: CFLAGS= -g
  185: LFLAGSOPT= -O3 -s -lm
  186: CFLAGSOPT= -O3
  187: UNIX2DOS= unix2dos
  188: SETUPCOMP= ~/bin/InnoSetup5Playonmac
  189: CP= cp
  190: BINVERSION=linux-i586-bin
  191: endif
  192: 
  193: ifdef _linux
  194: #CFLAGS= -g -DUNIX -DDEBUGHESS
  195: CFLAGS= -g -DDEBUG
  196: LFLAGS= -g -lm
  197: IGSL= -I/usr/include/gsl
  198: LGSL= -lgsl -lgslcblas
  199: INLOPT= -I/usr/local/include
  200: LNLOPT= -lm -L/usr/local/lib -lnlopt
  201: CFLAGSOPT= -O3 -g
  202: LFLAGSOPT= -O3 -g -lm
  203: UNIX2DOS= unix2dos
  204: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
  205: BINVERSION=LINUXnative
  206: endif
  207: 
  208: SED= sed
  209: PACKAGE=imach
  210: PROGRAM=IMaCh
  211: 
  212: 
  213: TMPSETUPSCRIPT=setup.iss
  214: TMPNOREGSETUPSCRIPT=noreg-setup.iss
  215: TMPSCRIPTIN=setup.iss.in
  216: APPLICATION=IMaCh
  217: APPNAME=$(APPLICATION)-$(VERSION)
  218: GNUPLOTVERSION=4.0
  219: LICENSE=Copying
  220: TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
  221: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
  222: LICENSEFILE=$(LICENSE)
  223: INFOBEFOREFILE=README.txt
  224: 
  225: setup.iss: setup.iss.in
  226: 	$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
  227: 		s/@NOTINNOREG@//g; \
  228: 		s/@NOREG@//g; \
  229: 		s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
  230: 		s/@VERSION@/$(VERSION)/g; \
  231: 		s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
  232: 		s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
  233: 		s/@LICENSEFILE@/$(LICENSEFILE)/g; \
  234: 		s/@PACKAGE@/$(PACKAGE)/g; \
  235: 		s/@DICTLANG@/$(DICTLANG)/g; \
  236: 	   	s/@VERMAJOR@/$(VERMAJOR)/g; \
  237: 		s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
  238: 		setup.iss.in > setup.iss
  239: 
  240: $(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
  241: 	$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
  242: 		s/@NOTINNOREG@/\\;/g; \
  243: 		s/@NOREG@/noreg-/g; \
  244: 		s/@IMACHSETUPVERSION@/$(IMACHSETUPVERSION)/g; \
  245: 		s/@VERSION@/$(VERSION)/g; \
  246: 		s/@GNUPLOTVERSION@/$(GNUPLOTVERSION)/g; \
  247: 		s/@INFOBEFOREFILE@/$(INFOBEFOREFILE)/g; \
  248: 		s/@LICENSEFILE@/$(LICENSEFILE)/g; \
  249: 		s/@PACKAGE@/$(PACKAGE)/g; \
  250: 		s/@DICTLANG@/$(DICTLANG)/g; \
  251: 	   	s/@VERMAJOR@/$(VERMAJOR)/g; \
  252: 		s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
  253: 		$(TMPSCRIPTIN) > $(TMPNOREGSETUPSCRIPT)
  254: #	$(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
  255: 
  256: $(TMPSETUPEXE): $(TMPSETUPSCRIPT)
  257: 	$(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
  258: 
  259: $(TMPNOREGSETUPEXE): $(TMPNOREGSETUPSCRIPT)
  260: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  261: 
  262: PARAM=mypar1
  263: 
  264: imachcyg-setup: imachcygopt.exe setup.iss
  265: 	touch setup.iss.in
  266: 	$(CP) imachcygopt.exe imach.exe
  267: 	$(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
  268: 	$(SETUPCOMP) /cc setup.iss
  269: 	cp Output/$(TMPSETUPEXE) imachcyg-setup
  270: 
  271: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
  272: imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
  273: 	touch setup.iss.in
  274: 	$(CP) imachcygopt.exe imach.exe
  275: 	$(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
  276: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  277: 	cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
  278: 
  279: imachILC64-setup: IMaCh-ilc64.exe setup.iss
  280: 	touch setup.iss.in
  281: 	$(CP) IMaCh-ilc64.exe imach.exe
  282: 	$(SETUPCOMP) /cc setup.iss
  283: 	$(CP) Output/$(TMPSETUPEXE) imachILC64-setup
  284: 
  285: imachILC64-noreg-setup: IMaCh-ilc64.exe noreg-setup.iss
  286: 	touch setup.iss.in
  287: 	$(CP) IMaCh-ilc64.exe imach.exe
  288: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  289: 	$(CP) Output/$(TMPSETUPEXE) imachILC64-noreg-setup
  290: 
  291: imachMVC-setup: imachMVC.exe setup.iss
  292: 	touch setup.iss.in
  293: 	$(CP) imachMVC.exe imach.exe
  294: 	$(SETUPCOMP) /cc setup.iss
  295: 	$(CP) Output/$(TMPSETUPEXE) imachcyg-setup
  296: 
  297: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
  298: imachMVC-noreg-setup: imachMVC.exe noreg-setup.iss
  299: 	touch setup.iss.in
  300: 	$(CP) imachMVC.exe imach.exe
  301: 	$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
  302: 	$(CP) Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
  303: 
  304: simach : simach.o 
  305: 	$(CC) $(LFLAGS) $(LGSL) -o simach simach.o
  306: simach.o : simach.c 
  307: 	$(CC) $(CFLAGS) -DGSL -c simach.c
  308: 
  309: imach : imach.o 
  310: 	$(CC) $(LFLAGS) -o imach imach.o
  311: ifdef _macosx
  312: 	$(DSYMUTIL) imach
  313: endif
  314: 
  315: imach.o : imach.c 
  316: 	 $(CC) $(CFLAGS) -DPOWELL -c imach.c
  317: 
  318: # http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.100%29.aspx
  319: imachcl: imach.c
  320: 	cl /O2 /MT /o imach.exe imach.c
  321: 
  322: imach097b : imach097b.o 
  323: 	$(CC) $(LFLAGS) -o imach097b imach097b.o
  324: imach097b.o : imach097b.c 
  325: 	$(CC) $(CFLAGS) -DPOWELL -c imach097b.c
  326: 
  327: 
  328: imachsimplified : imachsimplified.o 
  329: 	$(CC)  $(LFLAGSOPT) -o imachsimplified imachsimplified.o
  330: imachsimplified.o : imachsimplified.c 
  331: 	$(CC) $(CFLAGSOPT) -DPOWELL -c imachsimplified.c
  332: 
  333: imachgsl : imachgsl.o 
  334: 	$(CC) -o imachgsl imach.o  $(LFLAGS) $(LGSL) 
  335: imachgsl.o : imach.c 
  336: 	$(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
  337: 
  338: imachNEWUOAopt : imachNEWUOAopt.o 
  339: 	$(CC) -o imachNEWUOAopt  imachNEWUOAopt.o  $(LFLAGS) -g $(LNLOPT) 
  340: imachNEWUOAopt.o : imach.c 
  341: 	$(CC) $(CFLAGS) -g -DNLOPT $(INLOPT) -DNEWUOA -o  imachNEWUOAopt.o -c imach.c
  342: 
  343: imachBOBYQAopt : imachBOBYQAopt.o 
  344: 	$(CC) -o imachBOBYQAopt imachBOBYQAopt.o  $(LFLAGS) $(LNLOPT) 
  345: imachBOBYQAopt.o : imach.c 
  346: 	$(CC) $(CFLAGS) -DNLOPT $(INLOPT) -DBOBYQA -o imachBOBYQAopt.o -c imach.c
  347: 
  348: 
  349: imachopt : imachopt.o 
  350: 	$(CC) $(LFLAGSOPT) -o imachopt imachopt.o
  351: 	ln -f imachopt imach
  352: 	$(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
  353: 	cp -f imach ../bin
  354: ifdef _intel64onosx
  355: 	$(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
  356: endif
  357: ifdef _macosx
  358: 	$(STRIP) imach
  359: endif
  360: ifdef _linux32onosx
  361: 	(cd .. && gnutar jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
  362: endif
  363: ifdef _linux64onosx
  364: 	(cd .. && gnutar jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
  365: endif
  366: 
  367: imachopt.o : imach.c
  368: 	$(CC) $(CFLAGSOPT) -o imachopt.o -c imach.c
  369: #	$(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
  370: 
  371: imachUB : imach32 imach64
  372: 	lipo -create -arch i386 imach_32 -arch x86_64 imach_64 -output imach$(VERSION)
  373: 
  374: 
  375: #imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
  376: imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
  377: 	$(CC) $(LFLAGSOPT) -o imach imachopt.o
  378: 	#hdiutil detach /Volumes/IMaCh\ $(VERSION)
  379: 	rm -rf imach$(VERSION).app
  380: 	mkdir -p imach$(VERSION).app
  381: 	mkdir -p imach$(VERSION).app/Contents
  382: 	mkdir -p imach$(VERSION).app/Contents/MacOS
  383: 	cp applet imach$(VERSION).app/Contents/MacOS
  384: 	mkdir -p imach$(VERSION).app/Contents/Resources
  385: 	mkdir -p imach$(VERSION).app/Contents/Resources/Scripts
  386: 	mkdir -p imach$(VERSION).app/Contents/Resources/bin
  387: 	mkdir -p imach$(VERSION).app/Contents/Resources/html
  388: 	cp imach imach$(VERSION).app/Contents/Resources/bin
  389: 	cp gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot
  390: 	mkdir -p imach$(VERSION).app/Contents/Resources/description.rtfd
  391: 	cp -p TXT.rtf imach$(VERSION).app/Contents/Resources/description.rtfd
  392: 	$(SED) -e "s/@VERSION@/$(VERSION)/g;" \
  393: 	IMaChInfo.plist.in  >imach$(VERSION).app/Contents/Info.plist
  394: 	cp -p IMaChPkgInfo.in  imach$(VERSION).app/Contents/PkgInfo
  395: 	cp -p IMaCh.icns  imach$(VERSION).app/Contents/Resources/applet.icns
  396: 	cp -r -p main.scpt.in imach$(VERSION).app/Contents/Resources/Scripts/main.scpt
  397: 	cp IMaCH-ecrandemarrage.rsrc imach$(VERSION).app/Contents/Resources/applet.rsrc
  398: 	cp ../html/doc/data1.txt  imach$(VERSION).app/Contents/Resources/html
  399: 	cp ../html/doc/biaspar.log  imach$(VERSION).app/Contents/Resources/html
  400: 	cp ../html/doc/biaspar.imach  imach$(VERSION).app/Contents/Resources/html
  401: 	rm -f imach$(VERSION).dmg
  402: 	./createdmg3.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
  403: 	mv  imach$(VERSION).dmg Output/
  404: #	./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
  405: #	./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
  406: 
  407: upload:
  408: 	ls Output/* | xargs md5sum
  409: 	rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/
  410: 
  411: imachcyg : imachcyg.o
  412: 	$(CC) $(LFLAGS) -o imach imachcyg.o
  413: imachcyg.o : imach.c 
  414: 	$(CC) $(CFLAGS)  -c -o imachcyg.o imach.c
  415: imachcygopt.exe : imachcygopt.o
  416: 	$(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
  417: imachcygopt.o : imach.c 
  418: 	$(CC) $(CFLAGSOPT) -c -o imachcygopt.o imach.c
  419: 
  420: imachw32.o : imach.c
  421: 	i386-mingw32-gcc -c imach.c -o imachw32.o
  422: imach.exe : imachw32.o 
  423: 	i386-mingw32-gcc  -mwindows -o imach.exe -lm imachw32.o
  424: 	i386-mingw32-strip imach.exe
  425: 
  426: valgrind-test :  imach $(TESTFILE) 
  427: 	valgrind  --dsymutil=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ./imach $(TESTFILE)
  428: test:  imach $(TESTFILE) 
  429: 	gdb ./imach $(TESTFILE)
  430: 
  431: $(PARAM).htm: imach $(PARAM).imach data1.txt
  432: 	./imach $(PARAM).imach
  433: 
  434: clean: 
  435: 	rm or$(PARAM).txt er$(PARAM).txt pijr$(PARAM).txt plr$(PARAM).txt \
  436: 	r$(PARAM).txt tr$(PARAM).txt vpl$(PARAM).txt pr$(PARAM).txt \
  437: 	vr$(PARAM).txt *.gif imach.exe imach.o
  438: 
  439: 

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