Last change
on this file was
12299,
checked in by westram, 11 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 | |
---|
6 | CXX=$(A_CXX) |
---|
7 | CXXFLAGS=-c -O3 -msse2 -mfpmath=sse -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 |
---|
8 | LDFLAGS= -g |
---|
9 | |
---|
10 | OBJDIR=obj |
---|
11 | SRCDIR=src |
---|
12 | |
---|
13 | SOURCES=$(wildcard $(SRCDIR)/*.cpp) |
---|
14 | HEADERS=$(wildcard $(SRCDIR)/*.h) |
---|
15 | OBJECTS=$(addprefix $(OBJDIR)/,$(notdir $(SOURCES:.cpp=.o))) |
---|
16 | |
---|
17 | MUSCLE=$(ARBHOME)/bin/muscle |
---|
18 | |
---|
19 | SIMPLE_DEPENDS=Makefile $(HEADERS) |
---|
20 | |
---|
21 | all: $(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 | |
---|
33 | clean: |
---|
34 | rm -rf $(OBJDIR) |
---|
35 | rm -f $(MUSCLE) |
---|
36 | |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.