/[PAMELA software]/PamelaLevel2/doc/examples/Makefile
ViewVC logotype

Annotation of /PamelaLevel2/doc/examples/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Jan 15 11:51:39 2007 UTC (17 years, 11 months ago) by pam-fi
Branch: MAIN
Changes since 1.2: +1 -1 lines
v3r00 **NEW**

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.2 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.3 OBJS0 = Loop.o My-Selection-0.o My-Histos-0.o
24 pam-fi 1.2 Loop-0.exe: $(OBJS0) Makefile
25     $(CC) $(ALL_CFLAGS) $(INCS) $(OBJS0) $(LIBS) -o Loop-0.exe
26 pam-fi 1.1
27     .PHONY : clean
28     clean:
29 pam-fi 1.2 rm -f *.o *.exe

  ViewVC Help
Powered by ViewVC 1.1.23