source: rtems/c/src/lib/include/Makefile.in @ 5a0592c

4.104.114.84.95
Last change on this file since 5a0592c was 5a0592c, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 9, 1999 at 4:47:49 PM

Do not use the RTEMS simpleioctl.h if networking is enabled since
that subsystem provides a more robust version of ioctl.h.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../../../..
9subdir = c/src/lib/include
10
11INSTALL = @INSTALL@
12
13RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
14PROJECT_ROOT = @PROJECT_ROOT@
15
16VPATH = @srcdir@
17
18H_PIECES=chain console clockdrv iosupp ringbuf \
19   spurious timerdrv vmeintr
20H_FILES=$(H_PIECES:%=$(srcdir)/%.h)
21
22SYS_H_PIECES=termios utime
23ifeq ($(HAS_NETWORKING),yes)
24SYS_H_PIECES+=ioctl
25endif
26SYS_H_FILES=$(SYS_H_PIECES:%=$(srcdir)/sys/%.h)
27
28MOTOROLA_H_PIECES=mc68230 mc68681
29MOTOROLA_H_FILES=$(MOTOROLA_H_PIECES:%=$(srcdir)/motorola/%.h)
30
31ZILOG_H_PIECES=z8036 z8530 z8536
32ZILOG_H_FILES=$(ZILOG_H_PIECES:%=$(srcdir)/zilog/%.h)
33
34RTEMSCPLUSPLUS_H_PIECES= rtemsEvent rtemsInterrupt rtemsMessageQueue \
35  rtemsSemaphore rtemsStatusCode rtemsTask rtemsTaskMode rtemsTimer
36RTEMSCPLUSPLUS_H_FILES=$(RTEMSCPLUSPLUS_H_PIECES:%=$(srcdir)/rtems++/%.h)
37
38RPC_H_PIECES=  auth clnt rpc rpc_msg svc svc_auth types xdr
39RPC_H_FILES=$(RPC_H_PIECES:%=$(srcdir)/rpc/%.h)
40
41# We only build the rdbg library if HAS_NETWORKING and HAS_RDBG was defined
42RDBG_H_PIECES_yes_yes_V = servrpc rdbg $(RTEMS_CPU)/rdbg_f $(RTEMS_CPU)/reg
43RDBG_H_FILES=$(RDBG_H_PIECES_$(HAS_NETWORKING)_$(HAS_RDBG)_V:%=$(srcdir)/rdbg/%.h)
44
45SRCS=$(H_FILES) $(SYS_H_FILES) \
46     $(MOTOROLA_H_FILES) $(RTEMSCPLUSPLUS_H_FILES) \
47     $(RPC_H_FILES) $(RDBG_H_FILES)
48
49include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg
50include $(RTEMS_ROOT)/make/leaf.cfg
51CLEAN_ADDITIONS +=
52CLOBBER_ADDITIONS +=
53
54all:    $(SRCS)
55        $(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)
56        $(INSTALL_CHANGE) -m 444 $(SYS_H_FILES) $(PROJECT_INCLUDE)/sys
57        $(INSTALL_CHANGE) -m 444 $(MOTOROLA_H_FILES) \
58            $(PROJECT_INCLUDE)/motorola
59        $(INSTALL_CHANGE) -m 444 $(ZILOG_H_FILES) $(PROJECT_INCLUDE)/zilog
60ifeq ($(HAS_CPLUSPLUS),yes)
61        $(INSTALL_CHANGE) -m 444 $(RTEMSCPLUSPLUS_H_FILES) $(PROJECT_INCLUDE)/rtems++
62endif
63ifeq ($(HAS_NETWORKING),yes)
64        $(INSTALL_CHANGE) -m 444 $(RPC_H_FILES) $(PROJECT_INCLUDE)/rpc
65ifeq ($(HAS_RDBG),yes)
66        $(INSTALL_CHANGE) -m 444 $(RDBG_H_FILES) $(PROJECT_INCLUDE)/rdbg
67endif
68endif
69
70Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
71        cd $(top_builddir) \
72         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.