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 |
|
|
|
8 |
|
|
LIBS = $(PAM_LIB)/libyoda.so $(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so `root-config --cflags --glibs` |
9 |
|
|
INCS =-I `root-config --incdir` -I$(PAM_INC) -I$(PAM_INC)/yoda/ -I./ |
10 |
pam-fi |
1.5 |
EXE = Loop.exe |
11 |
pam-fi |
1.1 |
# pattern rule to compile object files from C files |
12 |
|
|
# might not work with make programs other than GNU make |
13 |
|
|
%.o : %.cpp Makefile |
14 |
|
|
$(CC) $(ALL_CFLAGS) $(INCS) -c $< -o $@ |
15 |
|
|
|
16 |
|
|
all: $(EXE) |
17 |
|
|
|
18 |
|
|
|
19 |
pam-fi |
1.2 |
OBJS = Loop.o My-Selection.o My-Histos.o |
20 |
|
|
Loop.exe: $(OBJS) Makefile |
21 |
|
|
$(CC) $(ALL_CFLAGS) $(INCS) $(OBJS) $(LIBS) -o Loop.exe |
22 |
|
|
|
23 |
pam-fi |
1.4 |
|
24 |
|
|
|
25 |
pam-fi |
1.1 |
.PHONY : clean |
26 |
|
|
clean: |
27 |
pam-fi |
1.2 |
rm -f *.o *.exe |