2 # For Solaris and other platforms where the logf function
3 # is missing from the math library, add the following line
4 # to the end of muscle.h:
5 # #define logf(x) ((float) log(x))
6 # Using -static increases the executable size and thus gives a very
7 # small increase in start time, but is more portable (the binding
8 # to dynamic libraries often breaks when a new library is released).
9 # On OSX, using -static gives the error "ld: can't locate file for: -lcrt0.o",
10 # this is fixed by deleting "-static" from the LDLIBS line.
12 CFLAGS = -O3 -funroll-loops -Winline -DNDEBUG=1
13 # LDLIBS = -lm -static
24 CPP = $(GPP) -c $(CFLAGS)
29 CPPSRC = $(sort $(wildcard *.cpp))
30 CPPOBJ = $(subst .cpp,.o,$(CPPSRC))
36 $(LD) -o muscle $(CPPOBJ) $(LDLIBS)