1 |
mocchiut |
1.1 |
SHELL = /bin/sh |
2 |
|
|
# decide on compiler and flags depending on host |
3 |
|
|
CC = g++ |
4 |
|
|
CFLAGS=-fPIC -pthread |
5 |
|
|
|
6 |
|
|
CROOT= root -l -b -q |
7 |
mocchiut |
1.3 |
#ALL_CFLAGS = -Wall -g $(CFLAGS) $(PAM_BIT) |
8 |
|
|
ALL_CFLAGS = -Wall -O2 $(CFLAGS) $(PAM_BIT) |
9 |
mocchiut |
1.1 |
|
10 |
|
|
|
11 |
|
|
LIBS = $(PAM_LIB)/libyoda.so $(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so `root-config --cflags --glibs` |
12 |
|
|
INCS =-I `root-config --incdir` -I$(PAM_INC) -I$(PAM_INC)/yoda/ -I./ |
13 |
|
|
EXE = ToFreproc.exe |
14 |
|
|
# pattern rule to compile object files from C files |
15 |
|
|
# might not work with make programs other than GNU make |
16 |
|
|
%.o : %.cpp Makefile |
17 |
|
|
$(CC) $(ALL_CFLAGS) $(INCS) -c $< -o $@ |
18 |
|
|
|
19 |
|
|
all: $(EXE) |
20 |
|
|
|
21 |
|
|
OBJS1 = ToFreproc.o |
22 |
|
|
ToFreproc.exe: $(OBJS1) Makefile |
23 |
|
|
$(CC) $(ALL_CFLAGS) $(INCS) $(OBJS1) $(LIBS) -o ToFreproc |
24 |
|
|
|
25 |
|
|
.PHONY : clean |
26 |
|
|
clean: |
27 |
|
|
rm -f *.o *.so *.exe ToFreproc |