5 |
ALL_CFLAGS = -Wall -O6 $(CFLAGS) |
ALL_CFLAGS = -Wall -O6 $(CFLAGS) |
6 |
|
|
7 |
|
|
|
OBJS = Loop.o My-Selection.o My-Histos.o |
|
8 |
LIBS = $(PAM_LIB)/libyoda.so $(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so `root-config --cflags --glibs` |
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./ |
INCS =-I `root-config --incdir` -I$(PAM_INC) -I$(PAM_INC)/yoda/ -I./ |
10 |
EXE = Loop.exe |
EXE = Loop.exe |
11 |
# pattern rule to compile object files from C files |
# pattern rule to compile object files from C files |
12 |
# might not work with make programs other than GNU make |
# might not work with make programs other than GNU make |
13 |
%.o : %.cpp Makefile |
%.o : %.cpp Makefile |
15 |
|
|
16 |
all: $(EXE) |
all: $(EXE) |
17 |
|
|
|
$(EXE): $(OBJS) Makefile |
|
|
$(CC) $(ALL_CFLAGS) $(INCS) $(OBJS) $(LIBS) -o $(EXE) |
|
18 |
|
|
19 |
|
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 |
|
OBJS0 = Loop-0.o My-Selection-0.o My-Histos-0 |
24 |
|
Loop-0.exe: $(OBJS0) Makefile |
25 |
|
$(CC) $(ALL_CFLAGS) $(INCS) $(OBJS0) $(LIBS) -o Loop-0.exe |
26 |
|
|
27 |
.PHONY : clean |
.PHONY : clean |
28 |
clean: |
clean: |
29 |
rm -f $(OBJS) $(EXE) |
rm -f *.o *.exe |
|
|
|
|
|
|