forked from lorenzozana/EdGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (30 loc) · 968 Bytes
/
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
include Makefile.arch
#------------------------------------------------------------------------------
EDGENS := $(wildcard *.$(SrcSuf))
EDGENH := $(wildcard *.h)
EDGENO := $(EDGENS:.$(SrcSuf)=.$(ObjSuf))
EDGEN = EdGen$(ExeSuf)
OBJS = $(EDGENO)
PROGRAMS = $(EDGEN)
FC=gfortran
FFLAGS= -O2
#------------------------------------------------------------------------------
.SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf)
all: $(PROGRAMS)
$(EDGEN): $(EDGENO)
@echo "this: $@, $(EDGENO)"
$(LD) $(LDFLAGS) $^ $(GLIBS) -ggdb -O2 -lEG -lGed -lHtml -lThread -lGeom $(OutPutOpt)$@
cp EdGen output/
@echo "$@ done"
EdGen.$(SrcSuf):
@echo "Generating dictionary $@..."
@rootcint -f $@ -c $^
clean:
@rm -f $(OBJS) *.res core
distclean: clean
@rm -f $(PROGRAMS) *Dict.* *.def *.exp \
*.geom *.root *.ps *.so .def so_locations
@rm -rf cxx_repository
###
.$(SrcSuf).$(ObjSuf):
$(CXX) $(CXXFLAGS) -c -g $<