COPYRIGHT=Copyright (C) 2002-2010 INED-EUROREVES-Institut de longevite
IMACHSETUPVERSION=1
-# make _windowsonlinux=1 imachcygopt.exe
-# make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
-
# make _linux=1 imachopt
# make _linux=1 imach
# make _windows=1 imachcyg
# make _windows=1 imachcyg-setup (touch setup.iss.in)
# make _windows=1 imachcyg-noreg-setup
+#
+# make _windowsonlinux=1 imachcyg-setup (touch setup.iss.in)
+# make _windowsonlinux=1 imachcyg-noreg-setup
+#
+# make _windowsonosx=1 imachcyg-setup (touch setup.iss.in)
+# make _windowsonosx=1 imachcyg-noreg-setup
+#
# sortie dans Output/setup.exe
# ln -s /cygdrive/c/Program\ Files/Inno\ Setup\ 4/Compil32.exe /usr/local/bin/Compil32
##SETUPCOMP= "C:\Program Files\Inno Setup 3\Compil32.exe"
ifdef _macosx
# Mac OS/X version
-LFLAGS= -O3 -lm -DUNIX
-CFLAGS= -O3 -DUNIX
+LFLAGS= -g -lm -DUNIX
+CFLAGS= -g -DUNIX
+LFLAGSOPT= -O3 -lm -DUNIX
+CFLAGSOPT= -O3 -DUNIX
UNIX2DOS= echo "Unix2dos "
# Don'know how to launch imach098.pmsp in batch to create package file imach098Panther.pkg
# ./createdmg.sh imach imach098panther ./imach098Panther
SETUPCOMP= wine "C:////Program Files////Inno Setup 4////Compil32.exe"
endif
+ifdef _windowsonosx
+GCC=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
+# w64 outputs bigger executables
+#GCC=/usr/local/cross-tools/bin/i686-w64-mingw32-gcc
+LFLAGS= -g
+CFLAGS= -g
+LFLAGSOPT= -O3
+CFLAGSOPT= -O3
+UNIX2DOS= unix2dos
+SETUPCOMP= ~/bin/InnoSetup5Playonmac
+endif
+
ifdef _linux
#CFLAGS= -g -DUNIX -DDEBUGHESS
CFLAGS= -g -DUNIX
GNUPLOTVERSION=4.0
LICENSE=Copying
TMPSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-setup.exe
+TMPNOREGSETUPEXE=imach-$(VERSION)-$(IMACHSETUPVERSION)-noreg-setup.exe
LICENSEFILE=$(LICENSE)
INFOBEFOREFILE=README.txt
-$(TMPSETUPSCRIPT): $(TMPSCRIPTIN)
+setup.iss: setup.iss.in
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
s/@NOTINNOREG@//g; \
s/@NOREG@//g; \
s/@DICTLANG@/$(DICTLANG)/g; \
s/@VERMAJOR@/$(VERMAJOR)/g; \
s/@COPYRIGHT@/$(COPYRIGHT)/g;" \
- $(TMPSCRIPTIN) > $(TMPSETUPSCRIPT)
+ setup.iss.in > setup.iss
$(TMPNOREGSETUPSCRIPT): $(TMPSCRIPTIN)
$(SED) -e "s/@APPNAME@/$(APPNAME)/g; \
imachcyg-setup: imachcygopt.exe setup.iss
$(CP) imachcygopt.exe imach.exe
- $(SETUPCOMP) /cc $(TMPSETUPSCRIPT)
+ $(SETUPCOMP) /cc setup.iss
+ cp Output/$(TMPSETUPEXE) imachcyg-setup
# imachcyg-noreg-setup : imachcygopt imachcygopt.o setup.iss.in noreg-setup.iss $(TMPNOREGSETUPEXE)
imachcyg-noreg-setup: imachcygopt.exe noreg-setup.iss
$(CP) imachcygopt.exe imach.exe
$(SETUPCOMP) /cc $(TMPNOREGSETUPSCRIPT)
+ cp Output/$(TMPNOREGSETUPEXE) imachcyg-noreg-setup
simach : simach.o
$(CC) $(LFLAGS) $(LGSL) -o simach simach.o