forked from bdartigu/pepteam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 1011 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#Conditionally declare CC and CXX so they can be overwritten from command line
CC?=gcc
CXX?=g++
CFLAGS=-Wall -march=native -Ofast
CXXFLAGS=$(CFLAGS) -std=c++1y
LDFLAGS=
#CPPFILES := $(wildcard src/*.cpp)
#OBJFILES := $(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
all: FastIdx PepTree PepteamMap PepteamProfile
FastIdx: bindir obj/FastIdx.o obj/FastIdx_drv.o
$(CXX) $(LDFLAGS) obj/FastIdx.o obj/FastIdx_drv.o -o bin/FastIdx
PepTree: bindir obj/FastIdx.o obj/PepTree.o obj/PepTree_drv.o
$(CXX) $(LDFLAGS) obj/FastIdx.o obj/PepTree.o obj/PepTree_drv.o -o bin/PepTree
PepteamMap: bindir obj/FastIdx.o obj/PepTree.o obj/PepteamMap.o
$(CXX) $(LDFLAGS) obj/FastIdx.o obj/PepTree.o obj/PepteamMap.o -o bin/PepteamMap
PepteamProfile: bindir obj/FastIdx.o obj/PepTree.o obj/PepteamProfile.o
$(CXX) $(LDFLAGS) obj/FastIdx.o obj/PepTree.o obj/PepteamProfile.o -o bin/PepteamProfile
obj/%.o: src/%.cpp objdir
$(CXX) $(CXXFLAGS) -c -o $@ $<
objdir:
mkdir -p obj
bindir:
mkdir -p bin
clean:
rm -rf obj bin