1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | |
---|
6 | $(PROJECT_INCLUDE): |
---|
7 | @$(mkinstalldirs) $@ |
---|
8 | $(PROJECT_INCLUDE)/sys: |
---|
9 | @$(mkinstalldirs) $@ |
---|
10 | $(PROJECT_INCLUDE)/rtems/posix: |
---|
11 | @$(mkinstalldirs) $@ |
---|
12 | |
---|
13 | $(PROJECT_INCLUDE)/%.h: %.h |
---|
14 | $(INSTALL_DATA) $< $@ |
---|
15 | |
---|
16 | # include |
---|
17 | noinst_HEADERS = devctl.h intr.h |
---|
18 | |
---|
19 | include_HEADERS = sched.h aio.h mqueue.h semaphore.h |
---|
20 | |
---|
21 | PREINSTALL_FILES = $(PROJECT_INCLUDE) \ |
---|
22 | $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
23 | |
---|
24 | # sys |
---|
25 | |
---|
26 | include_sysdir = $(includedir)/sys |
---|
27 | |
---|
28 | include_sys_HEADERS = sys/utsname.h |
---|
29 | |
---|
30 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \ |
---|
31 | $(include_sys_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
32 | |
---|
33 | # rtems/posix |
---|
34 | |
---|
35 | include_rtems_posixdir = $(includedir)/rtems/posix |
---|
36 | |
---|
37 | MP_H_FILES = rtems/posix/condmp.h rtems/posix/mqueuemp.h rtems/posix/mutexmp.h \ |
---|
38 | rtems/posix/pthreadmp.h rtems/posix/semaphoremp.h |
---|
39 | |
---|
40 | STD_H_FILES = rtems/posix/cancel.h rtems/posix/cond.h rtems/posix/config.h \ |
---|
41 | rtems/posix/key.h rtems/posix/mqueue.h rtems/posix/mutex.h \ |
---|
42 | rtems/posix/posixapi.h rtems/posix/priority.h rtems/posix/psignal.h \ |
---|
43 | rtems/posix/pthread.h rtems/posix/ptimer.h rtems/posix/semaphore.h \ |
---|
44 | rtems/posix/threadsup.h rtems/posix/time.h rtems/posix/timer.h \ |
---|
45 | $(MP_H_FILES) |
---|
46 | |
---|
47 | noinst_HEADERS += rtems/posix/intr.h rtems/posix/threadsup.h |
---|
48 | |
---|
49 | if HAS_MP |
---|
50 | include_rtems_posix_HEADERS = $(STD_H_FILES) $(MP_H_FILES) |
---|
51 | else |
---|
52 | include_rtems_posix_HEADERS = $(STD_H_FILES) |
---|
53 | endif |
---|
54 | |
---|
55 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix \ |
---|
56 | $(include_rtems_posix_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
57 | |
---|
58 | ## General |
---|
59 | |
---|
60 | all-local: $(PREINSTALL_FILES) |
---|
61 | |
---|
62 | EXTRA_DIST = $(noinst_HEADERS) |
---|
63 | |
---|
64 | include $(top_srcdir)/../../../../automake/local.am |
---|