From: Nicolas Brouard Date: Wed, 11 Sep 2024 12:06:06 +0000 (+0200) Subject: Makefile for clang on windows but very slow executable X-Git-Url: https://henry.ined.fr/git/?a=commitdiff_plain;h=ab4f99aed9467de468da6e19c166d85768239ac6;p=.git Makefile for clang on windows but very slow executable --- diff --git a/src/Makefile b/src/Makefile index a1c21af..cf17b14 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,6 +2,7 @@ #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 @@ -54,9 +55,20 @@ BINVERSION=OSX # ./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 @@ -162,13 +174,12 @@ imach.o : imach.c 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