-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGNUmakefile
41 lines (32 loc) · 993 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
37
38
39
40
ifeq ($(wildcard /ioc/tools/driver.makefile),)
$(info If you are not using the PSI build environment, GNUmakefile can be removed.)
include Makefile
else
include /ioc/tools/driver.makefile
BUILDCLASSES += vxWorks Linux WIN32
SOURCES += regDev.c
SOURCES += regDevSup.c
SOURCES += regDevAaiAao.c
SOURCES += regDevCopy.c
SOURCES += simRegDev.c
SOURCES_3.14 = regDevCalcout.c
DBDS_3.14 += regDevCalcout.dbd simRegDev.dbd
DBDS += regDevBase.dbd regDevAaiAao.dbd
HEADERS = regDev.h
ifneq ($(wildcard ${EPICS_BASE}/include/lsiRecord.h),)
SOURCES += regDevLsiLso.c
DBDS += regDevLsiLso.dbd
endif
ifneq ($(wildcard ${EPICS_BASE}/include/int64inRecord.h),)
SOURCES += regDevInt64.c
DBDS += regDevInt64.dbd
endif
regDev_CFLAGS_Linux = -fno-strict-aliasing
regDev_CFLAGS_vxWorks = -fno-strict-aliasing
test:
make -C test test
copytest: regDevCopy.c
gcc -o copytest regDevCopy.c -DTESTCASE -I /usr/local/epics/base/include -I /usr/local/epics/base/include/os/Linux
./copytest
rm copytest
endif