#VERSION=0.99s7
#VERSION=$(shell echo `grep IMACH_VERSION__ version.h | echo 'titi'`)
VERSION=$(shell echo `grep IMACH_VERSION__ version.h | awk 'BEGIN { FS = "[ \t\n\"]+" } { print $$3 }'`)
+VERSION=0.99s9
OSTYPE = $(shell echo $$OSTYPE)
COPYRIGHT=Copyright (C) 2002-2024 INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121) - Intel Software 2016-19
# ./create-dmg --volname "IMaCh 0.98j" imach098j.dmg imach098Leopard
endif
-ifdef _windows
-CC=c:\MinGW\bin\Mingw32-gcc
+ifdef _clangonwindows
+CC=LANG=C "C:\Program Files\llvm\bin\clang"
+STRIP=LANG=C "C:\Program Files\llvm\bin\llvm-strip"
+LFLAGS= -g -v
+CFLAGS= -g -v
+LFLAGSOPT= -O3
+CFLAGSOPT= -O3
+EXEC=.exe
+BINVERSION=CLANGonWINDOWS
+CP= cp
+endif
+ifdef _windows
+#CC=c:\MinGW\bin\Mingw32-gcc
# Windows cygwin version
LFLAGS= -g -mno-cygwin
CFLAGS= -g -mno-cygwin
imachopt : imachopt.o
- $(CCOPT) $(LFLAGSOPT) -o imachopt imachopt.o
- ln -f imachopt imach
- $(CP) imachopt Output/imachopt$(VERSION)-$(BINVERSION)
- $(CP) -f imach ../bin
+ $(CCOPT) $(LFLAGSOPT) -o imachopt$(EXEC) imachopt.o
+ $(STRIP) imachopt$(EXEC)
+ ln -f imachopt$(EXEC) imach$(EXEC)
+ $(CP) imachopt$(EXEC) ../build/Output/imachopt$(VERSION)-$(BINVERSION)$(EXEC)
ifdef _macosx
- $(STRIP) imach
- $(STRIP) imachopt
+ $(DSYMUTIL) imach
endif
imachopt.o : imach.c version.h