TOP=../.. include $(TOP)/configure/CONFIG #---------------------------------------- # ADD MACRO DEFINITIONS AFTER THIS LINE PLC_SVN = "https://halldsvn.jlab.org/repos/trunk/controls/plc/" L5X_EXPORT_CMD += svn export --force $(PLC_SVN)/bcal/l5x/BCAL_DS.L5X; touch BCAL_DS.L5X; L5X_EXPORT_CMD += svn export --force $(PLC_SVN)/bcal/l5x/BCAL_US.L5X; touch BCAL_US.L5X; L5X_EXPORT_CMD += svn export --force $(PLC_SVN)/fcal/l5x/FCAL_Dark_Room.L5X; touch FCAL_Dark_Room.L5X; L5X_EXPORT_CMD += svn export --force $(PLC_SVN)/gas/l5x/FDC_Gas_Controls.L5X; touch FDC_Gas_Controls.L5X; L5X_EXPORT_CMD += svn export --force $(PLC_SVN)/gas/l5x/TRD_Gas_Controls.L5X; touch TRD_Gas_Controls.L5X; L5X_EXPORT_CMD += svn export --force $(PLC_SVN)/reset/l5x/HallD_HV_Reset.L5X; touch HallD_HV_Reset.L5X; L5X_EXPORT_CMD += svn export --force $(PLC_SVN)/reset/l5x/Tagger_HV_Reset.L5X; touch Tagger_HV_Reset.L5X; L5X_EXPORT_CMD += svn export --force $(PLC_SVN)/devel/l5x/Development.L5X; touch Development.L5X; .PHONY: L5X_FILES all: install install: L5X_FILES buildInstall #---------------------------------------------------- # Optimization of db files using dbst (DEFAULT: NO) #DB_OPT = YES #---------------------------------------------------- # Create and install (or just install) # databases, templates, substitutions like this DB += FCAL_Dark_Room_PLCout.db FCAL_Dark_Room_PLCin.db FCAL_Dark_Room_PLCarr.db DB += BCAL_US_PLCout.db BCAL_US_PLCin.db BCAL_US_PLCarr.db DB += BCAL_DS_PLCout.db BCAL_DS_PLCin.db BCAL_DS_PLCarr.db DB += FDC_Gas_Controls_PLCout.db FDC_Gas_Controls_PLCin.db FDC_Gas_Controls_PLCarr.db DB += TRD_Gas_Controls_PLCout.db TRD_Gas_Controls_PLCin.db TRD_Gas_Controls_PLCarr.db DB += HallD_HV_Reset_PLCout.db HallD_HV_Reset_PLCin.db HallD_HV_Reset_PLCarr.db DB += Tagger_HV_Reset_PLCout.db Tagger_HV_Reset_PLCin.db Tagger_HV_Reset_PLCarr.db DB += Development_PLCout.db Development_PLCin.db Development_PLCarr.db REQ += FCAL_Dark_Room_PLCin.req FCAL_Dark_Room_PLCout.req REQ += BCAL_US_PLCin.req BCAL_DS_PLCin.req BCAL_US_PLCout.req BCAL_DS_PLCout.req REQ += FDC_Gas_Controls_PLCin.req FDC_Gas_Controls_PLCout.req REQ += TRD_Gas_Controls_PLCin.req TRD_Gas_Controls_PLCout.req REQ += HallD_HV_Reset_PLCin.req HallD_HV_Reset_PLCout.req REQ += Tagger_HV_Reset_PLCin.req Tagger_HV_Reset_PLCout.req REQ += Development_PLCin.req Development_PLCout.req #Install the IOC status reporting DB DEVIOCSTAT_LOC=$(DEVIOCSTATS)/db DB += $(DEVIOCSTAT_LOC)/iocAdminSoft.db #---------------------------------------------------- # If .db template is not named *.template add # _TEMPLATE = include $(TOP)/configure/RULES #---------------------------------------- # ADD RULES AFTER THIS LINE L5X_FILES: $(L5X_EXPORT_CMD) # # These are the rules of how to crate PLCout, PLCin and PLCarr DB file for PLC-to-EPICS interface. # $(COMMON_DIR)/%_PLCout.db: ../%.L5X ../%.cfg $(TOP)/scripts/RSLogixToEPICS/convertRSLogix2EPICS.py -c $(word 2,$^) -x $< -o $@ %_PLCout.db$(DEP): ../Makefile @echo "$(COMMON_DIR)/$^_PLCout.db: ../Makefile" > $@ $(COMMON_DIR)/%_PLCin.db: ../%.L5X ../%.cfg $(TOP)/scripts/RSLogixToEPICS/convertRSLogix2EPICS.py -c $(word 2,$^) -x $< -i $@ %_PLCin.db$(DEP): ../Makefile @echo "$(COMMON_DIR)/$^_PLCin.db: ../Makefile" > $@ $(COMMON_DIR)/%_PLCarr.db: ../%.L5X ../%.cfg $(TOP)/scripts/RSLogixToEPICS/convertRSLogix2EPICS.py -c $(word 2,$^) -x $< -a $@ %_PLCarr.db$(DEP): ../Makefile @echo "$(COMMON_DIR)/$^_PLCarr.db: ../Makefile" > $@ %_PLCin.req: ../%.L5X ../%.cfg $(TOP)/scripts/RSLogixToEPICS/convertRSLogix2EPICS.py -c $(word 2,$^) -x $< -s $@ %_PLCout.req: ../%.L5X ../%.cfg $(TOP)/scripts/RSLogixToEPICS/convertRSLogix2EPICS.py -c $(word 2,$^) -x $< -z $@