-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
54 lines (42 loc) · 1.56 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
52
53
54
include ./config.mk
targets=lib_shared
targets+=lib_archive
ifeq ($(EVTGEN_EXTERNAL),1)
targets+=libext_shared
targets+=libext_archive
endif
default: all
all: $(targets)
lib_shared:
$(MAKE) -C $(SRCDIR) lib_shared
lib_archive:
$(MAKE) -C $(SRCDIR) lib_archive
libext_shared:
$(MAKE) -C $(SRCDIR) libext_shared
libext_archive:
$(MAKE) -C $(SRCDIR) libext_archive
install:
if test "${PREFIX}" != "." ; then \
mkdir -p ${PREFIX}/lib ${PREFIX}/include ${PREFIX}/share && \
cp -rf lib/* ${PREFIX}/lib/ && \
cp -rf EvtGen EvtGenBase EvtGenModels EvtGenExternal ${PREFIX}/include/ && \
cp -rf *.DEC *.XML evt.pdl ${PREFIX}/share/ ; \
fi
distclean: clean
rm -rf tmp/ bin/ lib/ tmp_exp/
rm -f config.mk fort.*
clean:
$(MAKE) -C $(SRCDIR) clean
help:
@echo "A list of targets to make:"
@echo ""
@echo "lib_shared: compiles EvtGenBase and EvtGenModels as a shared library and puts it into ./lib"
@echo "lib_archive: compiles EvtGenBase and EvtGenModels as an archive library and puts it into ./lib/archive"
@echo "libext_shared: compiles EvtGenExternal as a shared library and puts it into ./lib"
@echo "libext_archive: compiles EvtGenExternal as an archive library and puts it into ./lib/archive"
@echo "default: lib_shared lib_archive libext_shared libext_archive"
@echo "install: install generator to location specified by --prefix option"
@echo "clean: removes all libraries, executables and objects"
@echo "distclean: same as 'clean' plus removing ./config.mk, tmp/ and lib/ directories"
@echo ""
.PHONY: distclean clean