Annotation of imach/src/Makefile, revision 1.56

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

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