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

debug require.c

parent ebc0c0b7
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,7 @@ install: uninstall ...@@ -107,7 +107,7 @@ install: uninstall
$(QUIET) sudo install -m 644 $(TOP)/$(E3_ENV_NAME)/setE3Env.bash $(REQUIRE_BIN)/ $(QUIET) sudo install -m 644 $(TOP)/$(E3_ENV_NAME)/setE3Env.bash $(REQUIRE_BIN)/
# #
## Uninstall "Require" Module in order not to use it ## Uninstall "Require" Module in order not to use it
uninstall: uninstall: conf
$(QUIET) sudo -E bash -c 'make $(M_OPTIONS) uninstall' $(QUIET) sudo -E bash -c 'make $(M_OPTIONS) uninstall'
...@@ -115,8 +115,13 @@ uninstall: ...@@ -115,8 +115,13 @@ uninstall:
build: conf build: conf
$(QUIET) make $(M_OPTIONS) $(QUIET) make $(M_OPTIONS)
## clean, build, and install again.
rebuild: clean build install
## Clean the EPICS Module ## Clean the EPICS Module
clean: clean: conf
$(QUIET) make $(M_OPTIONS) clean $(QUIET) make $(M_OPTIONS) clean
...@@ -171,4 +176,4 @@ conf: ...@@ -171,4 +176,4 @@ conf:
.PHONY: help default init $(EPICS_MODULE_NAME) $(E3_ENV_NAME) env conf install uninstall build clean .PHONY: help default init $(EPICS_MODULE_NAME) $(E3_ENV_NAME) env conf install uninstall build clean rebuild
...@@ -4,4 +4,4 @@ EPICS_LOCATION=/e3/bases ...@@ -4,4 +4,4 @@ EPICS_LOCATION=/e3/bases
EPICS_MODULES=/e3/modules EPICS_MODULES=/e3/modules
REQUIRE=require REQUIRE=require
IOCSH_HASH_VERSION=a17ef3d IOCSH_HASH_VERSION=ebc0c0b
...@@ -58,6 +58,7 @@ trap "softIoc_end ${IOC_STARTUP}" EXIT HUP INT TERM ...@@ -58,6 +58,7 @@ trap "softIoc_end ${IOC_STARTUP}" EXIT HUP INT TERM
{ {
printIocEnv; printIocEnv;
loadRequire; loadRequire;
loadFiles "$@"; loadFiles "$@";
if [ "$init" != NO ]; then if [ "$init" != NO ]; then
printf "iocInit\n" printf "iocInit\n"
...@@ -67,6 +68,7 @@ trap "softIoc_end ${IOC_STARTUP}" EXIT HUP INT TERM ...@@ -67,6 +68,7 @@ trap "softIoc_end ${IOC_STARTUP}" EXIT HUP INT TERM
printf "epicsEnvSet IOCSH_PS1 \"$IOCSH_PS1\"\n"; printf "epicsEnvSet IOCSH_PS1 \"$IOCSH_PS1\"\n";
printf "epicsEnvShow T_A\n"; printf "epicsEnvShow T_A\n";
printf "epicsEnvShow EPICS_HOST_ARCH\n"; printf "epicsEnvShow EPICS_HOST_ARCH\n";
printf "var requireDebug 1\n";
} > ${IOC_STARTUP} } > ${IOC_STARTUP}
......
...@@ -21,13 +21,11 @@ SOURCES_T2 += strdup.c ...@@ -21,13 +21,11 @@ SOURCES_T2 += strdup.c
SOURCES_vxWorks += asprintf.c SOURCES_vxWorks += asprintf.c
HEADERS += strdup.h asprintf.h HEADERS += strdup.h asprintf.h
HEADERS += require.h HEADERS += require.h
HEADERS += require_env.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
# Pass T_A to the code
# Should use '
USR_CFLAGS += -DT_A='"$(T_A)"'
# 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
......
require.c 0 → 100644
This diff is collapsed.
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