Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:57

0001 
0002 # module.mk appends to FILES and DICTFILES
0003 FILES :=
0004 DICTFILES :=
0005 
0006 # including the module.mk file
0007 -include $(patsubst %, %/module.mk,src) 
0008 
0009 # appending the values found in FILES to the variable SRC
0010 SRC += $(patsubst %,src/%,$(FILES))
0011 
0012 # appending the values found in DICTFILES to DICTH_modulename
0013 DICTH_src := $(foreach i, $(patsubst %,src/%,$(DICTFILES)), $(wildcard $(i).h) $(wildcard $(i).hh))
0014 # if dict header files exist, append to variable SRC
0015 ifneq ($(DICTH_src),)
0016 SRC += src/$(PKGNAME)_dict_src
0017 endif
0018 
0019 PROG += $(patsubst %,$(BINDIR)/%,$(PROGRAMS))
0020 
0021 # appending the values found in FILES to the variable SRC
0022 PROGSRC += $(patsubst %,src/%,$(PROGRAMS))
0023 
0024 # VPATH += :src
0025 
0026 # make sure the output directories are there
0027 __dummy := $(shell mkdir -p $(DEPDIR)/src $(OBJDIR)/src)
0028 
0029 # a couple of rules to copy executable files correctly
0030 $(BINDIR)/%: src/%
0031         cp $^ $@
0032 
0033 #$(BINDIR)/%: src/%.bin
0034 #       cp $^ $@
0035 
0036 $(BINDIR)/%: src/bin/%
0037         cp $^ $@
0038 
0039 $(BINDIR)/%: ${OBJDIR}/src/%.bin
0040         cp $^ $@
0041