Annotation of imach/src/Makefile, revision 1.52

1.49      brouard     1: VERSION=0.98p
1.32      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)
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
                     45: TESTFILE=$(HOME)/Documents/Recherches/REVES/Biaspar/biaspar-wopowell.imach
1.34      brouard    46: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc-test-mac/adecode-1.142c.imach
1.35      brouard    47: #TESTFILE=$(HOME)/Documents/Recherches/REVES/SAITO/Tokyo2014/adlc_test_magei4/radlc_often.imach
1.21      brouard    48: #CC= gcc -v
1.28      brouard    49: CC=$(GCC)
                     50: GCC= gcc
1.21      brouard    51: 
                     52: ifdef _macosx
                     53: # Mac OS/X version
1.45      brouard    54: LFLAGS= -g -lm 
                     55: CFLAGS= -g -DDEBUG 
                     56: LFLAGSOPT= -O3 -lm 
                     57: CFLAGSOPT= -O3 
1.21      brouard    58: UNIX2DOS= echo "Unix2dos " 
1.34      brouard    59: DSYMUTIL= dsymutil
1.42      brouard    60: STRIP= strip
                     61: BINVERSION=OSX
1.21      brouard    62: # Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
                     63: # ./createdmg.sh imach imach098panther ./imach098Panther
1.27      brouard    64: # ./createdmg.sh imach imach098leopard ./imach098Leopard
1.21      brouard    65: # and directory ./imach098Panther contains package file imach098Panther.pkg
1.27      brouard    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
1.21      brouard    68: endif
                     69: 
                     70: ifdef _windows
1.29      brouard    71: CC=c:\MinGW\bin\Mingw32-gcc
                     72: 
1.21      brouard    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
1.30      brouard    79: CP= copy
1.42      brouard    80: BINVERSION=CYGWIN
1.29      brouard    81: #SETUPCOMP= Compil32 
1.21      brouard    82: ##SETUPCOMP=start /wait "C:\Program\ Files\\Compil32.exe"
1.29      brouard    83: # cygwin SETUPCOMP=  "C:\Program Files\Inno Setup 4\Compil32.exe"
                     84: SETUPCOMP= "C:////Program Files////Inno Setup 4////Compil32.exe"
1.21      brouard    85: endif
                     86: 
1.28      brouard    87: ifdef _windowsonlinux
                     88: GCC=/usr/bin/i586-pc-mingw32-gcc
                     89: LFLAGS= -g
                     90: CFLAGS= -g
1.30      brouard    91: LFLAGSOPT= -O3 -lm
1.28      brouard    92: CFLAGSOPT= -O3
1.30      brouard    93: CP= cp
1.28      brouard    94: UNIX2DOS= unix2dos
                     95: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42      brouard    96: BINVERSION=WINDOWSonLINUX
1.28      brouard    97: endif
                     98: 
1.31      brouard    99: ifdef _windowsonosx
1.40      brouard   100: #GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
1.31      brouard   101: #GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
1.38      brouard   102: 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   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
1.42      brouard   111: BINVERSION=WIN32onOSX
                    112: endif
                    113: 
1.44      brouard   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: 
1.42      brouard   127: ifdef _windowscl
                    128: rem "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvas32.bat"
1.40      brouard   129: endif
                    130: 
1.48      brouard   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
1.49      brouard   136: LFLAGS= -g -m64
1.52    ! brouard   137: #CFLAGSOPT= -O3 -m64 -g -std=c99 -no-prec-div idem
        !           138: #CFLAGSOPT= -O3 -m64 -g -std=c99 -xSSSE3_ATOM 402
1.49      brouard   139: CFLAGSOPT= -O3 -m64 -g -std=c99
1.52    ! brouard   140: CROSSCOMPILATION= -DCROSS=0
1.48      brouard   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
1.49      brouard   144: LFLAGSOPT= -O3 -m64
1.48      brouard   145: UNIX2DOS= unix2dos
                    146: SETUPCOMP= ~/bin/InnoSetup5Playonmac
                    147: CP= cp
                    148: BINVERSION=osx-intel-x86-64-bin
1.49      brouard   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
1.52    ! brouard   158: CROSSCOMPILATION= -DCROSS=0
1.49      brouard   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
1.48      brouard   168: endif
                    169: 
1.40      brouard   170: ifdef _linux64onosx
1.51      brouard   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
1.40      brouard   173: LFLAGS= -g
                    174: CFLAGS= -g
1.51      brouard   175: CROSSCOMPILATION= -DCROSS=1
1.40      brouard   176: LFLAGSOPT= -O3 -lm -s
                    177: CFLAGSOPT= -O3
1.51      brouard   178: TAR= /sw/bin/gnutar
1.40      brouard   179: UNIX2DOS= unix2dos
                    180: SETUPCOMP= ~/bin/InnoSetup5Playonmac
                    181: CP= cp
1.42      brouard   182: BINVERSION=linux-x86-64-bin
1.40      brouard   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
1.51      brouard   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
1.31      brouard   190: LFLAGS= -g
                    191: CFLAGS= -g
1.40      brouard   192: LFLAGSOPT= -O3 -s -lm
1.31      brouard   193: CFLAGSOPT= -O3
1.51      brouard   194: TAR= /sw/bin/gnutar
1.31      brouard   195: UNIX2DOS= unix2dos
                    196: SETUPCOMP= ~/bin/InnoSetup5Playonmac
1.32      brouard   197: CP= cp
1.42      brouard   198: BINVERSION=linux-i586-bin
1.31      brouard   199: endif
                    200: 
1.21      brouard   201: ifdef _linux
1.26      brouard   202: #CFLAGS= -g -DUNIX -DDEBUGHESS
1.47      brouard   203: CFLAGS= -g -DDEBUG
1.42      brouard   204: LFLAGS= -g -lm
1.30      brouard   205: IGSL= -I/usr/include/gsl
1.25      brouard   206: LGSL= -lgsl -lgslcblas
1.46      brouard   207: INLOPT= -I/usr/local/include
                    208: LNLOPT= -lm -L/usr/local/lib -lnlopt
1.47      brouard   209: CFLAGSOPT= -O3 -g
                    210: LFLAGSOPT= -O3 -g -lm
1.21      brouard   211: UNIX2DOS= unix2dos
                    212: SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
1.42      brouard   213: BINVERSION=LINUXnative
1.50      brouard   214: CP= cp
1.21      brouard   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
1.31      brouard   230: TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
1.21      brouard   231: LICENSEFILE=$(LICENSE)
                    232: INFOBEFOREFILE=README.txt
                    233: 
1.31      brouard   234: setup.iss: setup.iss.in
1.21      brouard   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;" \
1.31      brouard   247:                setup.iss.in > setup.iss
1.21      brouard   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)
1.29      brouard   263: #      $(UNIX2DOS) $(TMPNOREGSETUPSCRIPT)
1.21      brouard   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
1.38      brouard   274:        touch setup.iss.in
1.30      brouard   275:        $(CP) imachcygopt.exe imach.exe
1.42      brouard   276:        $(CP) imachcygopt.exe imach$(VERSION)-$(BINVERSION).exe
1.31      brouard   277:        $(SETUPCOMP) /cc setup.iss
                    278:        cp Output/$(TMPSETUPEXE) imachcyg-setup
1.21      brouard   279: 
                    280: # imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
                    281: imachcyg-noreg-setup: imachcygopt.exe noreg-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.21      brouard   285:        $(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
1.31      brouard   286:        cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
1.21      brouard   287: 
1.45      brouard   288: imachILC64-setup: IMaCh-ilc64.exe setup.iss
1.51      brouard   289:        pwd
1.45      brouard   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: 
1.51      brouard   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: 
1.42      brouard   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: 
1.25      brouard   325: simach : simach.o 
                    326:        $(CC) $(LFLAGS) $(LGSL) -o simach simach.o
                    327: simach.o : simach.c 
1.30      brouard   328:        $(CC) $(CFLAGS) -DGSL -c simach.c
1.25      brouard   329: 
1.21      brouard   330: imach : imach.o 
                    331:        $(CC) $(LFLAGS) -o imach imach.o
1.34      brouard   332: ifdef _macosx
                    333:        $(DSYMUTIL) imach
                    334: endif
                    335: 
1.21      brouard   336: imach.o : imach.c 
1.47      brouard   337:         $(CC) $(CFLAGS) -DPOWELL -c imach.c
1.32      brouard   338: 
1.42      brouard   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: 
1.32      brouard   343: imach097b : imach097b.o 
                    344:        $(CC) $(LFLAGS) -o imach097b imach097b.o
                    345: imach097b.o : imach097b.c 
                    346:        $(CC) $(CFLAGS) -DPOWELL -c imach097b.c
1.30      brouard   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 
1.46      brouard   355:        $(CC) -o imachgsl imach.o  $(LFLAGS) $(LGSL) 
1.30      brouard   356: imachgsl.o : imach.c 
                    357:        $(CC) $(CFLAGS) -DGSL $(IGSL) -c imach.c
1.21      brouard   358: 
1.47      brouard   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: 
1.46      brouard   369: 
1.21      brouard   370: imachopt : imachopt.o 
                    371:        $(CC) $(LFLAGSOPT) -o imachopt imachopt.o
                    372:        ln -f imachopt imach
1.49      brouard   373:        $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
1.50      brouard   374:        $(CP) -f imach ../bin
1.49      brouard   375: ifdef _intel64onosx
                    376:        $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
                    377: endif
1.42      brouard   378: ifdef _macosx
                    379:        $(STRIP) imach
                    380: endif
                    381: ifdef _linux32onosx
1.51      brouard   382:        (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42      brouard   383: endif
                    384: ifdef _linux64onosx
1.51      brouard   385:        (cd .. && $(TAR) jcvf src/Output/imach-Linux-$(VERSION)-$(BINVERSION).tar.bz2 bin html/doc/biaspar.imach html/doc/data1.txt)
1.42      brouard   386: endif
                    387: 
1.48      brouard   388: imachopt.o : imach.c
1.51      brouard   389:        $(CC) $(CFLAGSOPT) $(CROSSCOMPILATION) -o imachopt.o -c imach.c
1.45      brouard   390: #      $(CC) $(CFLAGSOPT) -DPOWELL -o imachopt.o -c imach.c
1.21      brouard   391: 
1.49      brouard   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
1.36      brouard   397: imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
1.27      brouard   398:        $(CC) $(LFLAGSOPT) -o imach imachopt.o
1.37      brouard   399:        #hdiutil detach /Volumes/IMaCh\ $(VERSION)
1.36      brouard   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
1.38      brouard   408:        mkdir -p imach$(VERSION).app/Contents/Resources/html
1.36      brouard   409:        cp imach imach$(VERSION).app/Contents/Resources/bin
1.37      brouard   410:        cp gnuplot_bin/gnuplot_2_6_5_OSX imach$(VERSION).app/Contents/Resources/bin/gnuplot
1.36      brouard   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
1.38      brouard   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
1.36      brouard   422:        rm -f imach$(VERSION).dmg
1.38      brouard   423:        ./createdmg3.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
                    424:        mv  imach$(VERSION).dmg Output/
1.36      brouard   425: #      ./create-dmg --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION).app
1.38      brouard   426: #      ./createdmg2.sh --volname "IMaCh $(VERSION)" imach$(VERSION).dmg imach$(VERSION)
1.27      brouard   427: 
1.38      brouard   428: upload:
                    429:        ls Output/* | xargs md5sum
                    430:        rsync -v Output/* brouard@henry.ined.fr:/home/euroreves/html/imach/
1.27      brouard   431: 
1.44      brouard   432: imachcyg : imachcyg.o
                    433:        $(CC) $(LFLAGS) -o imach imachcyg.o
1.21      brouard   434: imachcyg.o : imach.c 
                    435:        $(CC) $(CFLAGS)  -c -o imachcyg.o imach.c
1.44      brouard   436: imachcygopt.exe : imachcygopt.o
                    437:        $(CC) $(LFLAGSOPT) -o imachcygopt.exe imachcygopt.o
1.21      brouard   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: 
1.34      brouard   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)
1.21      brouard   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>