source: rtems/cpukit/sapi/Makefile.am @ 2d0bc83

Last change on this file since 2d0bc83 was 2d0bc83, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 30, 2018 at 6:42:21 PM

build: Remove EXTRA_DIST

A "make dist" is not supported. So, it makes no sense to have pure "make
dist" related stuff in the Makefile.am.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4
5noinst_LIBRARIES = libsapi.a
6libsapi_a_SOURCES = src/extension.c src/extensioncreate.c \
7    src/extensiondelete.c src/extensionident.c src/fatal.c src/exinit.c \
8    src/exshutdown.c src/io.c src/ioclose.c src/iocontrol.c \
9    src/ioinitialize.c src/ioopen.c src/ioread.c src/ioregisterdriver.c \
10    src/iounregisterdriver.c src/iowrite.c src/posixapi.c  \
11    src/getversionstring.c \
12    src/chainappendnotify.c src/chaingetnotify.c src/chaingetwait.c \
13    src/chainprependnotify.c src/rbheap.c src/interrtext.c \
14    src/fatalsrctext.c src/version.c
15libsapi_a_SOURCES += src/chainprotected.c
16libsapi_a_SOURCES += src/cpucounterconverter.c
17libsapi_a_SOURCES += src/delayticks.c
18libsapi_a_SOURCES += src/delaynano.c
19libsapi_a_SOURCES += src/rbtree.c
20libsapi_a_SOURCES += src/rbtreefind.c
21libsapi_a_SOURCES += src/rbtreeinsert.c
22libsapi_a_SOURCES += src/panic.c
23libsapi_a_SOURCES += src/profilingiterate.c
24libsapi_a_SOURCES += src/profilingreportxml.c
25libsapi_a_SOURCES += src/tcsimpleinstall.c
26libsapi_a_CPPFLAGS = $(AM_CPPFLAGS)
27
28#
29# Create a new Version VC Key header if the VC state has changed.
30#
31vc_key_stamp = $(am__leading_dot)vc-key-stamp
32
33libsapi_a_CPPFLAGS += -I.
34
35BUILT_SOURCES = version-vc-key.h
36
37.PHONY: generate-vc-key
38
39generate-vc-key:
40        @+current_vc_key=""; \
41        if test -f $(vc_key_stamp); then \
42         current_vc_key=`cat $(vc_key_stamp)`; \
43        fi; \
44        vc_key=`$(top_srcdir)/sapi/vc-key.sh $(top_srcdir) $$current_vc_key`; \
45        if test "$$vc_key" != "matches"; then \
46         echo "Generating version-vc-key.h"; \
47         if test "$$vc_key" == "release"; then \
48          vc_header_key="\/\* No version control key found; release\? \*\/"; \
49         else \
50          vc_header_key="#define RTEMS_VERSION_VC_KEY \"$$vc_key\""; \
51         fi; \
52         cat $(top_srcdir)/sapi/version-vc-key.h.in | \
53          sed -e "s/@VERSION_VC_KEY@/$$vc_header_key/g" > version-vc-key.h; \
54         echo "$$vc_key" > $(vc_key_stamp); \
55        fi
56
57version-vc-key.h: generate-vc-key
58
59$(srcdir)/src/version.c: version-vc-key.h
60
61all-local: generate-vc-key
62
63include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.