Skip to content
Snippets Groups Projects
Commit 1d97e284 authored by Stephen A. Wood's avatar Stephen A. Wood Committed by Stephen A. Wood
Browse files

Autogenerate HallC_Linkdef.h in Makefile

  Also use wildcard to make SRC list of sources
parent ab91dc84
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
# List only the implementation files (*.cxx). For every implementation file # List only the implementation files (*.cxx). For every implementation file
# there must be a corresponding header file (*.h). # there must be a corresponding header file (*.h).
USEWILDCARD = 1
ifdef USEWILDCARD
SRC = $(wildcard src/*.cxx)
else
SRC = src/THcInterface.cxx src/THcParmList.cxx src/THcAnalyzer.cxx \ SRC = src/THcInterface.cxx src/THcParmList.cxx src/THcAnalyzer.cxx \
src/THcHallCSpectrometer.cxx \ src/THcHallCSpectrometer.cxx \
src/THcDetectorMap.cxx \ src/THcDetectorMap.cxx \
...@@ -35,6 +39,7 @@ SRC = src/THcInterface.cxx src/THcParmList.cxx src/THcAnalyzer.cxx \ ...@@ -35,6 +39,7 @@ SRC = src/THcInterface.cxx src/THcParmList.cxx src/THcAnalyzer.cxx \
src/THcTrigApp.cxx src/THcTrigDet.cxx src/THcTrigRawHit.cxx \ src/THcTrigApp.cxx src/THcTrigDet.cxx src/THcTrigRawHit.cxx \
src/THcRawAdcHit.cxx src/THcRawTdcHit.cxx \ src/THcRawAdcHit.cxx src/THcRawTdcHit.cxx \
src/THcDummySpectrometer.cxx src/THcDummySpectrometer.cxx
endif
# Name of your package. # Name of your package.
# The shared library that will be built will get the name lib$(PACKAGE).so # The shared library that will be built will get the name lib$(PACKAGE).so
...@@ -211,6 +216,11 @@ $(USERDICT).cxx: $(RCHDR) $(HDR) $(LINKDEF) ...@@ -211,6 +216,11 @@ $(USERDICT).cxx: $(RCHDR) $(HDR) $(LINKDEF)
@echo "Generating dictionary $(USERDICT)..." @echo "Generating dictionary $(USERDICT)..."
$(ROOTBIN)/rootcint -f $@ -c $(INCLUDES) $(CCDBFLAGS) $^ $(ROOTBIN)/rootcint -f $@ -c $(INCLUDES) $(CCDBFLAGS) $^
$(LINKDEF): $(LINKDEF)_preamble $(LINKDEF)_postamble $(SRC)
@cat $(LINKDEF)_preamble > $(LINKDEF)
@echo $(SRC) | tr ' ' '\n' | sed -e "s|src/|#pragma link C++ class |" | sed -e "s|.cxx|+;|" >> $(LINKDEF)
@cat $(LINKDEF)_postamble >> $(LINKDEF)
install: all install: all
cp -p $(USERLIB) $(HOME)/cue/SRC/ana cp -p $(USERLIB) $(HOME)/cue/SRC/ana
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment