Annotation of imach/src/Makefile, revision 1.57

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

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