-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathGNUmakefile
36 lines (27 loc) · 922 Bytes
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ifeq ($(wildcard /ioc/tools/driver.makefile),)
$(warning It seems you do not have the PSI build environment. Remove GNUmakefile.)
include Makefile
else
include /ioc/tools/driver.makefile
BUILDCLASSES += vxWorks Linux WIN32
SOURCES += require.c
DBDS += require.dbd
SOURCES += runScript.c
DBDS += runScript.dbd
SOURCES += expr.c
#DBDS += expr.dbd
SOURCES += dbLoadTemplate.y
DBDS += dbLoadTemplate.dbd
SOURCES_T2 += strdup.c
SOURCES_vxWorks += asprintf.c
SOURCES_WIN32 += asprintf.c
HEADERS += strdup.h asprintf.h
HEADERS += require.h
# We need to find the Linux link.h before the EPICS link.h
USR_INCLUDES_Linux=-idirafter ${EPICS_BASE}/include
# Pass T_A to the code
USR_CFLAGS += -DT_A='"${T_A}"' -DEPICSVERSION='"${EPICSVERSION}"'
# This should really go into some global WIN32 config file
USR_CFLAGS_WIN32 += /D_WIN32_WINNT=0x502
dbLoadTemplate.c: dbLoadTemplate_lex.c ../dbLoadTemplate.h
endif