-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
26 lines (18 loc) · 832 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
#Makefile for ADJACENCY c++ programs.
CPPFLAG= -I $(CANVAS_ROOT_IO_INC) \
-I $(ROOT_INC)
CXXFLAGS=-std=c++14 -Wall -Werror -pedantic
CXX=g++
LDFLAGS=$$(root-config --libs --cflags)
AdjacencyAlgorithms.o: AdjacencyAlgorithms.cpp
$(CXX) $(CPPFLAG) $(CXXFLAGS) $(LDFLAGS) -c $< -o $@
TriggerCandidate.o: TriggerCandidate.cpp
$(CXX) $(CPPFLAG) $(CXXFLAGS) $(LDFLAGS) -c $< -o $@
ModuleTrigger.o: ModuleTrigger.cpp
$(CXX) $(CPPFLAG) $(CXXFLAGS) $(LDFLAGS) -c $< -o $@
%.o: %.cc
$(CXX) $(CPPFLAG) $(CXXFLAGS) $(LDFLAGS) -o $*.o -c $*.cc
$(CXX) $(CPPFLAG) $(CXXFLAGS) $(LDFLAGS) -o $* AdjacencyAlgorithms.o TriggerCandidate.o ModuleTrigger.o $*.o
all: AdjacencyAlgorithms.o TriggerCandidate.o ModuleTrigger.o $(patsubst %.cc, %.o, $(wildcard *.cc))
clean:
rm -f $(wildcard *.o) $(patsubst %.cc, %, $(wildcard *.cc))