-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name := resolution
G4TARGET := $(name)
G4EXLIB := true
#CPPVERBOSE := 1
CPPFLAGS += -I$(shell root-config --incdir)
EXTRALIBS += $(shell root-config --libs) -lMinuit
CPPFLAGS += -g
CPPFLAGS += -Wno-unused-result
CPPFLAGS += -Wno-unused-but-set-parameter
CPPFLAGS += -Wno-unused-but-set-variable
RES_EventDir := ./RES_Event
RES_EventLib := $(RES_EventDir)/libRES_Event.so
EXTRALIBS += -L./$(RES_EventDir) -lRES_Event
CPPFLAGS += -I$(RES_EventDir)
EXTRA_LINK_DEPENDENCIES += $(RES_EventLib)
BlobelDir := ./blobel
BlobelLib := $(BlobelDir)/libBlobel.so
EXTRALIBS += -L./$(BlobelDir) -lBlobel
CPPFLAGS += -I$(BlobelDir)
EXTRA_LINK_DEPENDENCIES += $(BlobelLib)
.PHONY: all
all: TAGS lib bin
include $(G4INSTALL)/config/binmake.gmk
TAGS: $(G4TARGET).cc src/*.cc include/*.hh $(RES_EventDir)/*.cc $(RES_EventDir)/*.hh \
$(BlobelDir)/*.h $(BlobelDir)/*.f \
analysis/include/*.hh analysis/src/*.cc analysis/*.cc
@rm -f TAGS;
@etags $^
clean::
@$(MAKE) -C $(RES_EventDir) clean
@$(MAKE) -C $(BlobelDir) clean
@$(MAKE) -C analysis clean
@$(MAKE) -C test clean
@rm -f TAGS;
$(RES_EventLib): $(RES_EventDir)/*.hh $(RES_EventDir)/*.cc
@echo "Creating shared library $(RES_EventDir)/libRES_Event.so ..."
@$(MAKE) -s -C $(RES_EventDir)
$(BlobelLib): $(BlobelDir)/*.h $(BlobelDir)/*.f
@echo "Creating shared library $(BlobelDir)/libBlobel.so ..."
@$(MAKE) -s -C $(BlobelDir)