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

Annotation of /PamelaLevel2/doc/examples/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Fri Aug 17 16:57:11 2007 UTC (17 years, 3 months ago) by pam-fi
Branch: MAIN
CVS Tags: v5r00, v4r00, v10RED, v6r00, v9r00, HEAD
Changes since 1.4: +1 -8 lines
modified to work also with simulation

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

  ViewVC Help
Powered by ViewVC 1.1.23