source: trunk/GDE/MUSCLE/Makefile

Last change on this file was 12299, checked in by westram, 10 years ago
  • CC/CXX used by arb
    • overwrite defaults after copying them into A_CC/A_CXX
    • fix all errors (triggered by above change)
      • remove fallbacks (probcons; MUSCLE; FASTTREE)
      • set CC/CXX from A_CC/A_CXX (MrBAYES; PHYML20130708)
File size: 700 bytes
Line 
1#Simple makefile to build muscle inside ARB
2#By Arne Boeckmann (aboeckma@mpi-bremen.de)
3
4.PHONY: all clean
5
6CXX=$(A_CXX)
7CXXFLAGS=-c -O3 -msse2 -mfpmath=sse -D_FILE_OFFSET_BITS=64 -DNDEBUG=1
8LDFLAGS= -g
9
10OBJDIR=obj
11SRCDIR=src
12
13SOURCES=$(wildcard $(SRCDIR)/*.cpp)
14HEADERS=$(wildcard $(SRCDIR)/*.h)
15OBJECTS=$(addprefix $(OBJDIR)/,$(notdir $(SOURCES:.cpp=.o)))
16
17MUSCLE=$(ARBHOME)/bin/muscle
18
19SIMPLE_DEPENDS=Makefile $(HEADERS)
20
21all: $(OBJDIR)
22        $(MAKE) $(MUSCLE)
23
24$(OBJDIR):
25        mkdir -p $(OBJDIR)
26
27$(OBJDIR)/%.o: $(SRCDIR)/%.cpp $(SIMPLE_DEPENDS)
28        $(CXX) $(CXXFLAGS) -o $@ $<
29
30$(MUSCLE): $(OBJECTS) $(SIMPLE_DEPENDS)
31        $(CXX) $(LDFLAGS) $(OBJECTS) -o $(MUSCLE)
32
33clean:
34        rm -rf $(OBJDIR)
35        rm -f $(MUSCLE)
36
37
38
Note: See TracBrowser for help on using the repository browser.