2 CCFLAGS=-Wall -W -Wformat-nonliteral -Wcast-align -Wpointer-arith \
3 -Wbad-function-cast -Wmissing-prototypes \
4 -Wmissing-declarations -Winline -Wundef -Wnested-externs -Wcast-qual \
5 -Wshadow -Wwrite-strings -Wno-unused-parameter \
6 -Wswitch -Wbad-function-cast -g
7 INCLUDE= -I../include -I/usr/include/gmp -I/usr/include/mpfr \
8 -I/usr/local/include -I/usr/opt/include -I/usr/pkg/include
9 LIBS=-lm -lmpfr -lmpc -L/usr/local/lib -L/usr/opt/lib -L/usr/pkg/lib \
10 -R/usr/local/lib -R/usr/opt/lib
12 # Don't use 'obj' or funny things will happen with VPATH set to ../
25 autoreconf && ./configure
27 $(OBJDIR)/%.o: %.c | $(OBJDIR) config.h
28 $(CC99) -c -o $@ $< $(CCFLAGS) $(INCLUDE)
30 _DEPS = main.o basic-complex.o gen.o subr_mpc.o subr_random.o ulp_real.o \
32 DEPS = $(_DEPS:%=$(OBJDIR)/%)
34 $(CC99) -o ulps $(DEPS) $(CCFLAGS) $(INCLUDE) $(LIBS)
38 rm -f $(OBJDIR)/*.o *~ core
42 git clean -fd > /dev/null
44 # Hacky; create tar to ../ or else it will be included in the final tar
47 autoreconf && ./configure >/dev/null
49 cp ../include/mytypes.h .
50 cp ../include/subr_fpclassify.h .
51 cp ../include/subr_random.h .
52 tar czfv ../ulp-0.1.tar.gz .
53 mv ../ulp-0.1.tar.gz .