forked from Imagelibrary/rtems
A bug in acpolish made it into rtems-rc-19990709-0.diff, which
unfortunately affects all Makefile.ins:
* The maintainer mode conditional was erroniously applied to the
dependencies of "Makefile".
In case you already checked in rtems-rc-19990709-0.diff to CVS you have
to check in all Makefile.ins again after applying the patch below :).
Please apply the patch below as follows:
patch -p1 < rtems-rc-19990709-1.diff
tools/update/rtems-polish.sh -ac
Note: There is no need to rerun your tests if you have used
--enable-maintainer-mode to configure RTEMS, because this patch converts
all Makefile.ins to the same settings as used for
--enable-maintainer-mode.
95 lines
3.2 KiB
Makefile
95 lines
3.2 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
@SET_MAKE@
|
|
srcdir = @srcdir@
|
|
top_srcdir = @top_srcdir@
|
|
top_builddir = ..
|
|
subdir = include
|
|
|
|
RTEMS_ROOT = @RTEMS_ROOT@
|
|
PROJECT_ROOT = @PROJECT_ROOT@
|
|
|
|
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
|
include $(RTEMS_ROOT)/make/leaf.cfg
|
|
|
|
INSTALL_CHANGE = @INSTALL_CHANGE@
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
|
|
|
|
INSTALLDIRS = $(PROJECT_INCLUDE)/sys $(PROJECT_INCLUDE)/motorola \
|
|
$(PROJECT_INCLUDE)/zilog $(LIBRPCdir) $(LIBRDBGdir) \
|
|
$(LIBRTEMSCPLUSPLUSdir) $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems++ \
|
|
$(PROJECT_INCLUDE)/rpc $(PROJECT_INCLUDE)/rdbg
|
|
|
|
$(INSTALLDIRS):
|
|
@$(mkinstalldirs) $(INSTALLDIRS)
|
|
|
|
VPATH = @srcdir@
|
|
|
|
H_PIECES = chain console clockdrv iosupp ringbuf spurious timerdrv vmeintr
|
|
H_FILES = $(H_PIECES:%=$(srcdir)/%.h)
|
|
|
|
SYS_H_PIECES_no_V = ioctl
|
|
SYS_H_PIECES_yes_V =
|
|
SYS_H_PIECES = termios utime $(SYS_H_PIECES_$(HAS_NETWORKING)_V)
|
|
SYS_H_FILES = $(SYS_H_PIECES:%=$(srcdir)/sys/%.h)
|
|
|
|
MOTOROLA_H_PIECES = mc68230 mc68681
|
|
MOTOROLA_H_FILES = $(MOTOROLA_H_PIECES:%=$(srcdir)/motorola/%.h)
|
|
|
|
ZILOG_H_PIECES = z8036 z8530 z8536
|
|
ZILOG_H_FILES = $(ZILOG_H_PIECES:%=$(srcdir)/zilog/%.h)
|
|
|
|
RTEMSCPLUSPLUS_H_PIECES_yes_V = rtemsEvent rtemsInterrupt rtemsMessageQueue \
|
|
rtemsSemaphore rtemsStatusCode rtemsTask rtemsTaskMode rtemsTimer
|
|
RTEMSCPLUSPLUS_H_PIECES = $(RTEMSCPLUSPLUS_H_PIECES_$(HAS_CPLUSPLUS)_V)
|
|
RTEMSCPLUSPLUS_H_FILES = $(RTEMSCPLUSPLUS_H_PIECES:%=$(srcdir)/rtems++/%.h)
|
|
|
|
RPC_H_PIECES = auth clnt rpc rpc_msg svc svc_auth types xdr
|
|
RPC_H_FILES = $(RPC_H_PIECES:%=$(srcdir)/rpc/%.h)
|
|
|
|
# We only build the rdbg library if HAS_NETWORKING and HAS_RDBG was defined
|
|
RDBG_H_PIECES_yes_yes_V = servrpc rdbg $(RTEMS_CPU)/rdbg_f $(RTEMS_CPU)/reg
|
|
RDBG_H_PIECES = $(RDBG_H_PIECES_$(HAS_NETWORKING)_$(HAS_RDBG)_V)
|
|
RDBG_H_FILES = $(RDBG_H_PIECES:%=$(srcdir)/rdbg/%.h)
|
|
|
|
SRCS = $(H_FILES) $(SYS_H_FILES) $(MOTOROLA_H_FILES) \
|
|
$(RTEMSCPLUSPLUS_H_FILES) $(RPC_H_FILES) $(RDBG_H_FILES)
|
|
|
|
CLEAN_ADDITIONS +=
|
|
CLOBBER_ADDITIONS +=
|
|
|
|
# We only make the rpc install point if networking is enabled.
|
|
LIBRPC_yes_V = $(PROJECT_INCLUDE)/rpc
|
|
LIBRPCdir = $(LIBRPC_$(HAS_NETWORKING)_V)
|
|
|
|
# We only make the rdbg install point if networking and rdbg is enabled.
|
|
LIBRDBG_yes_yes_V = $(PROJECT_INCLUDE)/rdbg
|
|
LIBRDBGdir = $(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V)
|
|
|
|
# We only make the rtems++ install point if it is enabled.
|
|
LIBRTEMSCPLUSPLUS_yes_V = $(PROJECT_INCLUDE)/rtems++
|
|
LIBRTEMSCPLUSPLUSdir = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)
|
|
|
|
all: preinstall
|
|
|
|
preinstall: $(INSTALLDIRS) $(SRCS)
|
|
@$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
|
|
@$(INSTALL_CHANGE) -m 644 $(SYS_H_FILES) $(PROJECT_INCLUDE)/sys
|
|
@$(INSTALL_CHANGE) -m 644 $(MOTOROLA_H_FILES) $(PROJECT_INCLUDE)/motorola
|
|
@$(INSTALL_CHANGE) -m 644 $(ZILOG_H_FILES) $(PROJECT_INCLUDE)/zilog
|
|
@if test "$(HAS_CPLUSPLUS)" = "yes"; then \
|
|
$(INSTALL_CHANGE) -m 644 $(RTEMSCPLUSPLUS_H_FILES) $(PROJECT_INCLUDE)/rtems++; \
|
|
fi
|
|
@if test "$(HAS_NETWORKING)" = "yes"; then \
|
|
$(INSTALL_CHANGE) -m 644 $(RPC_H_FILES) $(PROJECT_INCLUDE)/rpc; \
|
|
fi
|
|
@if test "$(HAS_RDBG)" = "yes"; then \
|
|
$(INSTALL_CHANGE) -m 644 $(RDBG_H_FILES) $(PROJECT_INCLUDE)/rdbg; \
|
|
fi
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
cd $(top_builddir) \
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|