Next version of JABA
[jabaws.git] / binaries / src / muscle / Makefile
1 # Porting notes:
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.
11
12 CFLAGS = -O3 -funroll-loops -Winline -DNDEBUG=1
13 LDLIBS = -lm -static
14 # LDLIBS = -lm
15
16 OBJ = .o
17 EXE =
18
19 RM = rm -f
20 CP = cp
21
22 GPP = g++
23 LD = $(GPP) $(CFLAGS)
24 CPP = $(GPP) -c $(CFLAGS) 
25                    
26
27 all: muscle
28
29 CPPSRC = $(sort $(wildcard *.cpp))
30 CPPOBJ  = $(subst .cpp,.o,$(CPPSRC))
31
32 $(CPPOBJ): %.o: %.cpp
33         $(CPP) $< -o $@
34
35 muscle: $(CPPOBJ)
36         $(LD) -o muscle $(CPPOBJ) $(LDLIBS)
37         strip muscle