-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (18 loc) · 677 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (18 loc) · 677 Bytes
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
#Simple makefile which compiles sources into libraries
#and then links libraries into a target file.
#To add more classes one just needs to add the *.o file into $(LIB_OBJS)
#
CPPFLAGS = -g -Wall -std=c++11
ARFLAGS = -rv
CC = g++
LIB_OBJS = Event.o Particle.o Event_Parser.o Kaon.o Pion.o
TARGET = event_analyzer
$(TARGET): $(LIB_OBJS) event_analyzer.o
$(CC) $(CPPFLAGS) -o $(TARGET) $(LIB_OBJS) event_analyzer.o
all: $(LIB_OBJS) $(TARGET)
TEST_TARGET = test
$(TEST_TARGET): $(LIB_OBJS) test.o
$(CC) $(CPPFLAGS) -o $(TEST_TARGET) $(LIB_OBJS) test.o
test: $(LIB_OBJS) $(TEST_TARGET)
clean:
rm -f $(TARGET) $(LIB_OBJS) $(TEST_TARGET) test.o event_analyzer.o