-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGNUmakefile
More file actions
executable file
·45 lines (34 loc) · 949 Bytes
/
Copy pathGNUmakefile
File metadata and controls
executable file
·45 lines (34 loc) · 949 Bytes
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
# --------------------------------------------------------------
# $Id: GNUmakefile,v 1.02 2010/12/25 HRSMC Exp $
#
# GNUmakefile for HRSMC
# --------------------------------------------------------------
name := PRadSim
G4TARGET := $(name)
G4EXLIB := true
#show the cmd line
#CPPVERBOSE = 1
ifndef G4INSTALL
G4INSTALL = ../../../..
endif
.PHONY: all
all: bin
#add root package
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
ROOTGLIBS := $(shell root-config --glibs)
CPPFLAGS += $(ROOTCFLAGS) -std=c++11 -Ithirdparty/include -fPIC
EXTRALIBS += $(ROOTLIBS)
#using g4 compiling framework
include $(G4INSTALL)/config/binmake.gmk
help:
@echo G4TARGET=[$(G4TARGET)]
@echo CPPFLAGS=[$(CPPFLAGS)]
@echo objects=[$(objects)]
@echo LDFLAGS=[$(LDFLAGS)]
@echo LDLIBS=[$(LDLIBS)]
@echo G4TMPDIR=[$(G4TMPDIR)]
@echo FSOURCE=[$(FSOURCE)]
@echo FFLAGS=[$(FFLAGS)]
distclean:
@make clean