11# makefile for TomsFastMath
22#
33#
4- VERSION =0.13
4+ VERSION =0.13.1
55
66CFLAGS += -Wall -W -Wshadow -Isrc/headers
77
@@ -21,6 +21,22 @@ ifndef MAKE
2121 MAKE =make
2222endif
2323
24+ ifeq ($V,1)
25+ silent =
26+ else
27+ silent =@
28+ endif
29+
30+ % .o : % .c
31+ ifneq ($V,1)
32+ @echo " * ${CC} $@"
33+ endif
34+ ${silent} ${CC} ${CFLAGS} -c $< -o $@
35+
36+ ifdef COMPILE_DEBUG
37+ # debug
38+ CFLAGS += -g3
39+ else
2440ifndef IGNORE_SPEED
2541
2642CFLAGS += -O3 -funroll-loops
@@ -32,6 +48,7 @@ CFLAGS += -O3 -funroll-loops
3248# speed
3349CFLAGS += -fomit-frame-pointer
3450
51+ endif
3552endif
3653
3754# START_INS
@@ -103,6 +120,11 @@ install: $(LIBNAME)
103120 install -g $(GROUP ) -o $(USER ) $(LIBNAME ) $(DESTDIR )$(LIBPATH )
104121 install -g $(GROUP ) -o $(USER ) $(HEADERS_PUB ) $(DESTDIR )$(INCPATH )
105122
123+ HEADER_FILES =$(notdir $(HEADERS_PUB ) )
124+ uninstall :
125+ rm $(DESTDIR )$(LIBPATH ) /$(LIBNAME )
126+ rm $(HEADER_FILES:%=$(DESTDIR )$(INCPATH ) /% )
127+
106128.PHONY : mtest
107129mtest : $(LIBNAME )
108130 cd mtest; CC=" $( CC) " CFLAGS=" $( CFLAGS) -I../" MAKE=${MAKE} ${MAKE} mtest
@@ -189,9 +211,10 @@ zipup:
189211 rm -rf ../tomsfastmath-$(VERSION ) && rm -f ../tfm-$(VERSION ) .zip ../tfm-$(VERSION ) .tar.bz2 && \
190212 expsrc.sh -i . -o ../tomsfastmath-$(VERSION ) --svntags --no-fetch -p ' *.c' -p ' *.h' && \
191213 MAKE=${MAKE} ${MAKE} -C ../tomsfastmath-$(VERSION ) docs && \
192- tar -c ../tomsfastmath-$(VERSION ) /* | bzip2 -9vvc > ../tfm-$(VERSION ) .tar.bz2 && \
214+ tar -c ../tomsfastmath-$(VERSION ) /* | xz -cz > ../tfm-$(VERSION ) .tar.xz && \
215+ find ../tomsfastmath-$(VERSION ) / -type f -exec unix2dos -q {} \; && \
193216 zip -9 -r ../tfm-$(VERSION ) .zip ../tomsfastmath-$(VERSION ) /* && \
194- gpg -b -a ../tfm-$(VERSION ) .tar.bz2 && gpg -b -a ../tfm-$(VERSION ) .zip
217+ gpg -b -a ../tfm-$(VERSION ) .tar.xz && gpg -b -a ../tfm-$(VERSION ) .zip
195218
196219new_file :
197220 bash updatemakes.sh
0 commit comments