source: rtems/c/Makefile.in @ 87d3d02

4.104.114.84.95
Last change on this file since 87d3d02 was d7072e5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/21/97 at 18:37:32

Moved rtems directory up one directory in the install point. It was
formerly under $(target) and is now at the same level.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1#
2#  $Id$
3#
4# top level directory for RTEMS build tree
5# This Makefile is *not* a good example of a directory Makefile.
6#
7
8@SET_MAKE@
9srcdir = @srcdir@
10top_srcdir = @top_srcdir@
11prefix = @prefix@
12exec_prefix = @exec_prefix@
13bindir = @bindir@
14libdir = @libdir@
15includedir = @includedir@
16target = @target@
17manext = 1
18mandir = @mandir@/man$(manext)
19program_prefix = @program_prefix@
20VPATH=@srcdir@
21
22include $(RTEMS_CUSTOM)
23include $(RTEMS_ROOT)/make/directory.cfg
24
25# dubious, but needed by rtems-glom ...
26export PROJECT_HOME
27
28SUB_DIRS=build-tools src
29
30# We only make the install point for the KA9Q header files if it is enabled.
31LIBKA9Q_yes_V = lib/include/ka9q
32LIBKA9Q = $(LIBKA9Q_$(HAS_KA9Q)_V)
33
34# We only make the rtems++ install point if it is enabled.
35LIBRTEMSCPLUSPLUS_yes_V = lib/include/rtems++
36LIBRTEMSCPLUSPLUS = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)
37
38# directories to be created in install point
39CREATE_DIRS = \
40    lib lib/include lib/include/sys lib/include/rtems \
41    lib/include/rtems/score lib/include/rtems/rtems lib/include/rtems/posix \
42    lib/include/netinet lib/include/libc lib/include/libc/sys \
43    lib/include/motorola lib/include/zilog \
44    $(LIBKA9Q) \
45    $(LIBRTEMSCPLUSPLUS) \
46    bin samples \
47    tests tests/screens tests/screens/sptests \
48    tests/screens/psxtests tests/screens/mptests \
49    tests/screens/mptests/node1 tests/screens/mptests/node2 \
50    build-tools update-tools
51
52# Make all/install must include 'env'
53all: env
54$(TARGET_VARIANTS): env
55$(TARGET_VARIANTS:%=%_install): env
56$(TARGET_VARIANTS:%=%_all): env
57
58# top level clean/clobber will delete the install points
59clean_WRAPUP = $(MAKE) clean_wrapup
60clobber_WRAPUP = $(MAKE) clean_wrapup
61
62clean_wrapup: clean_tools clean_dirs clean_modules
63
64.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
65
66#  XXX The link is temporary while switching to -specs options.
67dirs:
68        -test -d $(PROJECT_ROOT)/c/src/lib/libhwapi && \
69            (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs)
70        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
71
72distclean: clobber
73
74clean_dirs:
75        $(RM) -r $(PROJECT_RELEASE)
76
77clean_tools:
78        cd build-tools; $(MAKE) clean
79
80# NOTE: The wildcard on the install should pick up everything except
81#       the tests directory.  This significantly minimizes the install size.
82install: all
83         -$(MKDIR) $(prefix)/
84         -$(MKDIR) $(prefix)/rtems
85         -$(MKDIR) $(prefix)/rtems/make
86         -$(MKDIR) $(prefix)/rtems/make/compilers
87         -$(MKDIR) $(prefix)/rtems/make/custom
88         -$(MKDIR) $(prefix)/rtems/make/os
89        -rm -rf $(prefix)/rtems/$(RTEMS_BSP)
90        cd ../; tar cf - make $(RTEMS_BSP)/[bilsu]* | \
91                (cd $(prefix)/rtems; tar xpBf - )
92        (echo RTEMS_BSP = $(RTEMS_BSP) ; cat make/Templates/Makefile.inc ) \
93                > $(prefix)/rtems/$(RTEMS_BSP)/Makefile.inc
94
95tests:
96        cd src/tests; $(MAKE) all
97
98env:    $(SRCS) dirs
Note: See TracBrowser for help on using the repository browser.