source: rtems/c/Makefile.in @ 23683dd5

4.104.114.84.95
Last change on this file since 23683dd5 was 23683dd5, checked in by Joel Sherrill <joel.sherrill@…>, on 03/03/98 at 20:42:30

Changed to remove warning.

  • 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@
10prefix = @prefix@
11exec_prefix = @exec_prefix@
12bindir = @bindir@
13libdir = @libdir@
14includedir = @includedir@
15target = @target@
16manext = 1
17mandir = @mandir@/man$(manext)
18program_prefix = @program_prefix@
19VPATH = @srcdir@
20RTEMS_ROOT = @top_srcdir@
21PROJECT_ROOT = @PROJECT_ROOT@
22
23include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
24include $(RTEMS_ROOT)/make/directory.cfg
25
26SUB_DIRS=build-tools src
27
28# We only make the install point for the KA9Q header files if it is enabled.
29LIBKA9Q_yes_V = lib/include/ka9q
30LIBKA9Q = $(LIBKA9Q_$(HAS_KA9Q)_V)
31
32# We only make the rtems++ install point if it is enabled.
33LIBRTEMSCPLUSPLUS_yes_V = lib/include/rtems++
34LIBRTEMSCPLUSPLUS = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)
35
36# directories to be created in install point
37CREATE_DIRS = \
38    lib lib/include lib/include/sys lib/include/rtems \
39    lib/include/rtems/score lib/include/rtems/rtems lib/include/rtems/posix \
40    lib/include/netinet lib/include/libc lib/include/libc/sys \
41    lib/include/motorola lib/include/zilog \
42    $(LIBKA9Q) \
43    $(LIBRTEMSCPLUSPLUS) \
44    bin samples \
45    tests tests/screens tests/screens/sptests \
46    tests/screens/psxtests tests/screens/mptests \
47    tests/screens/mptests/node1 tests/screens/mptests/node2 \
48    build-tools update-tools
49
50# Make all/install must include 'env'
51# if something is added to TARGET_VARIANTS, then account for it here
52all: env
53debug: env
54profile: env
55
56install: all install_files
57debug_install: env debug install_files
58profile_install: env profile install_files
59
60debug_all: debug
61profile_all: profile
62
63# top level clean/clobber will delete the install points
64clean_WRAPUP = $(MAKE) clean_wrapup
65clobber_WRAPUP = $(MAKE) clean_wrapup
66
67clean_wrapup: clean_tools clean_dirs clean_modules
68
69.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
70
71dirs:
72        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
73        if test -d $(PROJECT_ROOT)/c/src/lib/libhwapi; then \
74                (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs) \
75        fi
76
77distclean: clobber
78
79clean_dirs:
80        $(RM) -r $(PROJECT_RELEASE)
81
82clean_tools:
83        cd build-tools; $(MAKE) clean
84
85$(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc: $(PROJECT_ROOT)/make/Templates/Makefile.inc
86        echo "RTEMS_BSP = $(RTEMS_BSP)" > $@
87        $(CAT) $< >> $@
88
89# NOTE: The wildcard on the install should pick up everything except
90#       the tests directory.  This significantly minimizes the install size.
91
92install_files: $(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc
93        -$(MKDIR) $(prefix)/
94        -$(MKDIR) $(prefix)/rtems
95        -$(RM) -rf $(prefix)/rtems/$(RTEMS_BSP)
96        cd ../; tar cf - $(RTEMS_BSP)/[bilsuM]* | \
97                (cd $(prefix)/rtems; tar xpBf - )
98        cd ../make; $(MAKE) RTEMS_BSP=$(RTEMS_BSP) install
99
100tests:
101        cd src/tests; $(MAKE) all
102
103env:    $(SRCS) dirs
Note: See TracBrowser for help on using the repository browser.