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

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