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

Annotation of /PamelaLevel2/doc/examples/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Fri Feb 16 18:38:13 2007 UTC (17 years, 9 months ago) by pam-fi
Branch: MAIN
CVS Tags: v3r03
Changes since 1.3: +6 -1 lines
new features in Loop.cpp

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.4 EXE = Loop.exe Loop-1.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 pam-fi 1.4 OBJS1 = Loop.o Selection-none.o Histo-test.o
28     Loop-1.exe: $(OBJS1) Makefile
29     $(CC) $(ALL_CFLAGS) $(INCS) $(OBJS1) $(LIBS) -o Loop-1.exe
30    
31    
32 pam-fi 1.1 .PHONY : clean
33     clean:
34 pam-fi 1.2 rm -f *.o *.exe

  ViewVC Help
Powered by ViewVC 1.1.23