source: rtems/c/Makefile.in @ b5fe39d

4.104.114.84.95
Last change on this file since b5fe39d was b5fe39d, checked in by Joel Sherrill <joel.sherrill@…>, on 12/04/97 at 18:38:33

Reworked mkdir line to invoke smaller lines.

  • Property mode set to 100644
File size: 2.9 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        @echo Making directories in build tree ...
72        -$(foreach dir,$(CREATE_DIRS), \
73            $(shell $(MKDIR) $(PROJECT_ROOT)/$(RTEMS_BSP)/$(dir)))
74
75distclean: clobber
76
77clean_dirs:
78        $(RM) -r $(PROJECT_RELEASE)
79
80clean_tools:
81        cd build-tools; $(MAKE) clean
82
83# NOTE: The wildcard on the install should pick up everything except
84#       the tests directory.  This significantly minimizes the install size.
85install: all
86         -$(MKDIR) $(prefix)/
87         -$(MKDIR) $(prefix)/rtems
88         -$(MKDIR) $(prefix)/rtems/make
89         -$(MKDIR) $(prefix)/rtems/make/compilers
90         -$(MKDIR) $(prefix)/rtems/make/custom
91        -rm -rf $(prefix)/rtems/$(RTEMS_BSP)
92        cd ../; tar cf - make $(RTEMS_BSP)/[bilsu]* | \
93                (cd $(prefix)/rtems; tar xpBf - )
94        (echo RTEMS_BSP = $(RTEMS_BSP) ; $(CAT) make/Templates/Makefile.inc ) \
95                > $(prefix)/rtems/$(RTEMS_BSP)/Makefile.inc
96
97tests:
98        cd src/tests; $(MAKE) all
99
100env:    $(SRCS) dirs
Note: See TracBrowser for help on using the repository browser.