source: rtems/c/Makefile.in @ 419fdf1

4.104.114.84.95
Last change on this file since 419fdf1 was cb5bfe4, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 20, 1998 at 7:41:09 PM

Removed CONFIG_DIR and PROJECT_HOME directories.

  • Property mode set to 100644
File size: 3.0 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@
21RTEMS_ROOT = @RTEMS_ROOT@
22PROJECT_ROOT = @PROJECT_ROOT@
23RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
24
25include $(RTEMS_CUSTOM)
26include $(RTEMS_ROOT)/make/directory.cfg
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'
53# if something is added to TARGET_VARIANTS, then account for it here
54all: env
55debug: env
56profile: env
57
58install: all install_files
59debug_install: env debug install_files
60profile_install: env profile install_files
61
62debug_all: debug
63profile_all: profile
64
65# top level clean/clobber will delete the install points
66clean_WRAPUP = $(MAKE) clean_wrapup
67clobber_WRAPUP = $(MAKE) clean_wrapup
68
69clean_wrapup: clean_tools clean_dirs clean_modules
70
71.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
72
73dirs:
74        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
75        -test -d $(PROJECT_ROOT)/c/src/lib/libhwapi && \
76            (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs)
77#       @echo Making directories in build tree ...
78#       -$(foreach dir,$(CREATE_DIRS), \
79#           $(shell $(MKDIR) $(PROJECT_ROOT)/$(RTEMS_BSP)/$(dir)))
80
81distclean: clobber
82
83clean_dirs:
84        $(RM) -r $(PROJECT_RELEASE)
85
86clean_tools:
87        cd build-tools; $(MAKE) clean
88
89$(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc: $(PROJECT_ROOT)/make/Templates/Makefile.inc
90        echo "RTEMS_BSP = $(RTEMS_BSP)" > $@
91        $(CAT) $< >> $@
92
93# NOTE: The wildcard on the install should pick up everything except
94#       the tests directory.  This significantly minimizes the install size.
95
96install_files: $(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc
97        -$(MKDIR) $(prefix)/
98        -$(MKDIR) $(prefix)/rtems
99        -$(RM) -rf $(prefix)/rtems/$(RTEMS_BSP)
100        cd ../; tar cf - $(RTEMS_BSP)/[bilsuM]* | \
101                (cd $(prefix)/rtems; tar xpBf - )
102        cd ../make; make RTEMS_BSP=$(RTEMS_BSP) install
103
104tests:
105        cd src/tests; $(MAKE) all
106
107env:    $(SRCS) dirs
Note: See TracBrowser for help on using the repository browser.