| 1 |
pam-fi |
1.1 |
SHELL = /bin/sh |
| 2 |
|
|
# decide on compiler and flags depending on host |
| 3 |
|
|
CC = g++ |
| 4 |
|
|
CFLAGS=-fPIC -pthread |
| 5 |
|
|
ALL_CFLAGS = -Wall -O6 $(CFLAGS) |
| 6 |
|
|
|
| 7 |
|
|
CROOT= root -l -b -q |
| 8 |
|
|
|
| 9 |
|
|
LIBS = $(PAM_LIB)/libyoda.so $(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so `root-config --cflags --glibs` |
| 10 |
|
|
INCS =-I `root-config --incdir` -I$(PAM_INC) -I$(PAM_INC)/yoda/ -I./ |
| 11 |
|
|
|
| 12 |
|
|
|
| 13 |
|
|
# |
| 14 |
|
|
# list of all exe to compile |
| 15 |
|
|
# |
| 16 |
|
|
EXE = GP.exe Trigger.exe |
| 17 |
|
|
# pattern rule to compile object files from C files |
| 18 |
|
|
# might not work with make programs other than GNU make |
| 19 |
|
|
%.o : %.cpp Makefile |
| 20 |
|
|
$(CC) $(ALL_CFLAGS) $(INCS) -c $< -o $@ |
| 21 |
|
|
|
| 22 |
|
|
all: $(EXE) |
| 23 |
|
|
|
| 24 |
|
|
|
| 25 |
|
|
# |
| 26 |
|
|
# program to loop over a simulation file and retrieve GP variables |
| 27 |
|
|
# (the file MUST contain both Digitizer and DarthVader output) |
| 28 |
|
|
# |
| 29 |
|
|
OBJS1 = Loop.o GP.o |
| 30 |
|
|
GP.exe: $(OBJS1) Makefile |
| 31 |
|
|
$(CC) $(ALL_CFLAGS) $(INCS) $(OBJS1) $(LIBS) -o GP.exe |
| 32 |
|
|
|
| 33 |
|
|
# |
| 34 |
|
|
# program to compare trigger and tof-tdc variables |
| 35 |
|
|
# |
| 36 |
|
|
OBJS2 = Loop.o Trigger.o |
| 37 |
|
|
Trigger.exe: $(OBJS2) Makefile |
| 38 |
|
|
$(CC) $(ALL_CFLAGS) $(INCS) $(OBJS2) $(LIBS) -o Trigger.exe |
| 39 |
|
|
|
| 40 |
|
|
.PHONY : clean |
| 41 |
|
|
clean: |
| 42 |
|
|
rm -f *.o *.exe |