Skip to content
Snippets Groups Projects
Commit db146f6d authored by Jeong Han Lee's avatar Jeong Han Lee
Browse files

update require.Makefile in order to handle new and old versions of require...

update require.Makefile in order to handle new and old versions of require modules, new version merged from
PSI should be merged into ESS one.
parent db1b36ff
No related branches found
No related tags found
No related merge requests found
#
# Copyright (c) 2004 - 2017 Paul Scherrer Institute
# Copyright (c) 2017 - Present European Spallation Source ERIC
#
# The program is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of the
# License, or any newer version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see https://www.gnu.org/licenses/gpl-2.0.txt
#
# PSI original author : Dirk Zimoch
# ESS specific author : Jeong Han Lee
# email : han.lee@esss.se
#
# Date : Wednesday, November 29 13:46:39 CET 2017
# version : 0.0.1
# This is the one time path in order to compile and install # This is the one time path in order to compile and install
# require within EPICS Environment. After the installation # require within EPICS Environment. After the installation
# include $(REQUIRE_TOOLS)/driver.makefile should be used # include $(E3_REQUIRE_TOOLS)/driver.makefile should be used
# #
where_am_I := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) where_am_I := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
...@@ -16,14 +40,31 @@ SOURCES += require.c ...@@ -16,14 +40,31 @@ SOURCES += require.c
DBDS += require.dbd DBDS += require.dbd
SOURCES += runScript.c SOURCES += runScript.c
DBDS += runScript.dbd DBDS += runScript.dbd
#SOURCES += expr.c
# PSI split expression at 0b6d1dd. So, require.Makefile should
# handel the different require source files with and without
# expr.c in the same way. Thus, I added the additional logic
# to handle to cover entire cases.
# If there is no expr.c, it is now safe to ignore it
# Friday, May 11 21:58:24 CEST 2018, jhlee
expr_src=expr.c
SOURCES += $(filter $(expr_src), $(wildcard *.c))
##
SOURCES += dbLoadTemplate.y SOURCES += dbLoadTemplate.y
DBDS += dbLoadTemplate.dbd DBDS += dbLoadTemplate.dbd
SOURCES_T2 += strdup.c # ESS doesn't have any T2_ppc604 and vxWorks target
SOURCES_vxWorks += asprintf.c # Friday, May 11 22:05:07 CEST 2018, jhlee
HEADERS += strdup.h asprintf.h #
#SOURCES_T2 += strdup.c
#SOURCES_vxWorks += asprintf.c
#
#HEADERS += strdup.h
#HEADERS += asprintf.h
HEADERS += require.h HEADERS += require.h
#HEADERS += require_env.h #HEADERS += require_env.h
...@@ -31,19 +72,25 @@ HEADERS += require.h ...@@ -31,19 +72,25 @@ HEADERS += require.h
# We need to find the Linux link.h before the EPICS link.h # We need to find the Linux link.h before the EPICS link.h
USR_INCLUDES_Linux=-idirafter $(EPICS_BASE)/include USR_INCLUDES_Linux=-idirafter $(EPICS_BASE)/include
# ESS require doesn't use T_A, because Linux should handle linux as "1"
# instead of its name. ESS require can handle them within the EPICS
# IOC shell internally.
#
#USR_CFLAGS += -DT_A='"${T_A}"' #USR_CFLAGS += -DT_A='"${T_A}"'
# ESS doesn't support WIN32
# This should really go into some global WIN32 config file # This should really go into some global WIN32 config file
USR_CFLAGS_WIN32 += /D_WIN32_WINNT=0x501 # USR_CFLAGS_WIN32 += /D_WIN32_WINNT=0x501
TEMPLATES += moduleversion.template TEMPLATES += moduleversion.template
#TEMPLATES += moduleversion.db #TEMPLATES += moduleversion.db
dbLoadTemplate.c: dbLoadTemplate_lex.c ../dbLoadTemplate.h dbLoadTemplate.c: dbLoadTemplate_lex.c ../dbLoadTemplate.h
## moduleversion should convert to db instead of template
## So, ESS uses it internally independent upon any IOC
## varialbes
EPICS_BASE_HOST_BIN = $(EPICS_BASE)/bin/$(EPICS_HOST_ARCH) EPICS_BASE_HOST_BIN = $(EPICS_BASE)/bin/$(EPICS_HOST_ARCH)
MSI = $(EPICS_BASE_HOST_BIN)/msi MSI = $(EPICS_BASE_HOST_BIN)/msi
......
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