source: rtems/c/Makefile.in @ cb5bfe4

4.104.114.84.95
Last change on this file since cb5bfe4 was cb5bfe4, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/98 at 19:41:09

Removed CONFIG_DIR and PROJECT_HOME directories.

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[254b4450]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@
[674c900]20VPATH = @srcdir@
21RTEMS_ROOT = @RTEMS_ROOT@
22PROJECT_ROOT = @PROJECT_ROOT@
23RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
[254b4450]24
25include $(RTEMS_CUSTOM)
26include $(RTEMS_ROOT)/make/directory.cfg
27
28SUB_DIRS=build-tools src
29
[1f0f3e35]30# We only make the install point for the KA9Q header files if it is enabled.
[0c618b67]31LIBKA9Q_yes_V = lib/include/ka9q
[1f0f3e35]32LIBKA9Q = $(LIBKA9Q_$(HAS_KA9Q)_V)
33
[91333c2]34# We only make the rtems++ install point if it is enabled.
[0c618b67]35LIBRTEMSCPLUSPLUS_yes_V = lib/include/rtems++
[91333c2]36LIBRTEMSCPLUSPLUS = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)
37
[254b4450]38# directories to be created in install point
[0c618b67]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 \
[7510f18c]44    $(LIBKA9Q) \
45    $(LIBRTEMSCPLUSPLUS) \
[0c618b67]46    bin samples \
[7510f18c]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
[254b4450]51
52# Make all/install must include 'env'
[674c900]53# if something is added to TARGET_VARIANTS, then account for it here
[2a1a547]54all: env
[674c900]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
[254b4450]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:
[cb5bfe4]74        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
[5bb2ed07]75        -test -d $(PROJECT_ROOT)/c/src/lib/libhwapi && \
76            (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs)
[674c900]77#       @echo Making directories in build tree ...
78#       -$(foreach dir,$(CREATE_DIRS), \
79#           $(shell $(MKDIR) $(PROJECT_ROOT)/$(RTEMS_BSP)/$(dir)))
[254b4450]80
81distclean: clobber
82
83clean_dirs:
84        $(RM) -r $(PROJECT_RELEASE)
85
86clean_tools:
87        cd build-tools; $(MAKE) clean
88
[cb5bfe4]89$(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc: $(PROJECT_ROOT)/make/Templates/Makefile.inc
90        echo "RTEMS_BSP = $(RTEMS_BSP)" > $@
91        $(CAT) $< >> $@
92
[254b4450]93# NOTE: The wildcard on the install should pick up everything except
94#       the tests directory.  This significantly minimizes the install size.
[674c900]95
[cb5bfe4]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]* | \
[d7072e5]101                (cd $(prefix)/rtems; tar xpBf - )
[cb5bfe4]102        cd ../make; make RTEMS_BSP=$(RTEMS_BSP) install
[254b4450]103
104tests:
105        cd src/tests; $(MAKE) all
106
107env:    $(SRCS) dirs
Note: See TracBrowser for help on using the repository browser.