1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../.. |
---|
9 | subdir = posix/include/rtems/posix |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@ |
---|
15 | |
---|
16 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
17 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
18 | |
---|
19 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
20 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
21 | |
---|
22 | INSTALLDIRS = $(PROJECT_INCLUDE)/rtems/posix |
---|
23 | |
---|
24 | $(INSTALLDIRS): |
---|
25 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
26 | |
---|
27 | # We only build multiprocessing related files if HAS_MP was defined |
---|
28 | MP_H_PIECES_yes_V = condmp mqueuemp mutexmp pthreadmp semaphoremp |
---|
29 | MP_H_PIECES = $(MP_H_PIECES_$(HAS_MP)_V) |
---|
30 | |
---|
31 | H_PIECES = cancel cond config key mqueue mutex posixapi priority psignal \ |
---|
32 | pthread ptimer semaphore seterr threadsup time $(MP_H_PIECES) |
---|
33 | #H_PIECES= cancel cond intr key mqueue mqueuemp mutex \ |
---|
34 | # mutexmp pthread pthreadmp priority semaphore semaphoremp threadsup \ |
---|
35 | # time |
---|
36 | H_FILES = $(H_PIECES:%=$(srcdir)/%.h) |
---|
37 | |
---|
38 | SRCS = $(H_FILES) |
---|
39 | |
---|
40 | # |
---|
41 | # Add your list of files to delete here. The config files |
---|
42 | # already know how to delete some stuff, so you may want |
---|
43 | # to just run 'make clean' first to see what gets missed. |
---|
44 | # 'make clobber' already includes 'make clean' |
---|
45 | # |
---|
46 | |
---|
47 | CLEAN_ADDITIONS += |
---|
48 | CLOBBER_ADDITIONS += |
---|
49 | |
---|
50 | preinstall: $(INSTALLDIRS) $(H_FILES) |
---|
51 | @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/rtems/posix |
---|
52 | |
---|
53 | all: preinstall |
---|
54 | |
---|
55 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
56 | cd $(top_builddir) \ |
---|
57 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|