forked from paulscherrerinstitute/StreamDevice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
57 lines (47 loc) · 1.61 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
EXCLUDE_VERSIONS = 3.13.2
PROJECT=stream
BUILDCLASSES += vxWorks Linux WIN32
DOCUDIR = docs
PCRE=1
ASYN=1
-include ../src/CONFIG_STREAM
-include src/CONFIG_STREAM
SOURCES += $(RECORDTYPES:%=src/dev%Stream.c)
SOURCES += $(FORMATS:%=src/%Converter.cc)
SOURCES += $(BUSSES:%=src/%Interface.cc)
SOURCES += $(STREAM_SRCS:%=src/%)
HEADERS += src/devStream.h
HEADERS += src/StreamFormat.h
HEADERS += src/StreamFormatConverter.h
HEADERS += src/StreamBuffer.h
HEADERS += src/StreamError.h
HEADERS += src/StreamVersion.h
HEADERS += src/StreamProtocol.h
HEADERS += src/StreamBusInterface.h
HEADERS += src/StreamCore.h
HEADERS += src/MacroMagic.h
CPPFLAGS += -DSTREAM_INTERNAL -I$(COMMON_DIR)
# Update version string each time anything changes
StreamVersion$(OBJ) StreamVersion$(DEP): $(COMMON_DIR)/StreamVersion.h $(filter-out StreamVersion$(OBJ) stream_exportAddress$(OBJ),$(LIBOBJS) $(LIBRARY_OBJS))
$(COMMON_DIR)/StreamVersion.h: $(filter-out StreamVersion.h,$(notdir $(SOURCES) $(HEADERS)))
@echo Creating $@
$(PERL) ../src/makeStreamVersion.pl $@
StreamCore$(OBJ) StreamCore$(DEP): streamReferences
streamReferences:
$(PERL) ../src/makeref.pl Interface $(BUSSES) > $@
$(PERL) ../src/makeref.pl Converter $(FORMATS) >> $@
export DBDFILES = streamSup.dbd
streamSup.dbd:
@echo Creating $@ from $(RECORDTYPES)
$(PERL) ../src/makedbd.pl $(RECORDTYPES) > $@
ifdef BASE_3_14
ifdef ASYN
echo "registrar(AsynDriverInterfaceRegistrar)" >> $@
endif
endif
endif