source: rtems/c/Makefile.in @ 7510f18c

4.104.114.84.95
Last change on this file since 7510f18c was 7510f18c, checked in by Joel Sherrill <joel.sherrill@…>, on 08/04/97 at 21:42:22

Added include/motorola and include/zilog directories to the
install tree and cleaned up spacing.

  • Property mode set to 100644
File size: 3.1 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 = include/ka9q
32LIBKA9Q = $(LIBKA9Q_$(HAS_KA9Q)_V)
33
34# We only make the rtems++ install point if it is enabled.
35LIBRTEMSCPLUSPLUS_yes_V = include/rtems++
36LIBRTEMSCPLUSPLUS = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)
37
38# directories to be created in install point
39CREATE_DIRS =   include include/sys \
40    include/rtems include/rtems/score include/rtems/rtems include/rtems/posix \
41    include/netinet include/libc include/libc/sys \
42    include/motorola include/zilog \
43    $(LIBKA9Q) \
44    $(LIBRTEMSCPLUSPLUS) \
45    lib bin samples \
46    tests tests/screens tests/screens/sptests \
47    tests/screens/psxtests tests/screens/mptests \
48    tests/screens/mptests/node1 tests/screens/mptests/node2 \
49    build-tools update-tools
50
51# Make all/install must include 'env'
52all $(TARGET_VARIANTS:%=%_install) $(TARGET_VARIANTS:%=%_all): env
53
54# top level clean/clobber will delete the install points
55clean_WRAPUP = $(MAKE) clean_wrapup
56clobber_WRAPUP = $(MAKE) clean_wrapup
57
58clean_wrapup: clean_tools clean_dirs clean_modules
59
60.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
61
62#  XXX The link is temporary while switching to -specs options.
63dirs:
64        -test -d $(PROJECT_ROOT)/c/src/lib/libhwapi && \
65            (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs)
66        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
67        -rm -f $(PROJECT_ROOT)/$(RTEMS_BSP)/include
68        -ln -s $(PROJECT_ROOT)/$(RTEMS_BSP)/include \
69                $(PROJECT_ROOT)/$(RTEMS_BSP)/lib/include
70
71distclean: clobber
72
73clean_dirs:
74        $(RM) -r $(PROJECT_RELEASE)
75
76clean_tools:
77        cd build-tools; $(MAKE) clean
78
79# NOTE: The wildcard on the install should pick up everything except
80#       the tests directory.  This significantly minimizes the install size.
81install: all
82         -$(MKDIR) $(prefix)/$(target)
83         -$(MKDIR) $(prefix)/$(target)/rtems
84         -$(MKDIR) $(prefix)/$(target)/rtems/make
85         -$(MKDIR) $(prefix)/$(target)/rtems/make/compilers
86         -$(MKDIR) $(prefix)/$(target)/rtems/make/custom
87         -$(MKDIR) $(prefix)/$(target)/rtems/make/os
88        -rm -rf $(prefix)/$(target)/rtems/$(RTEMS_BSP)
89        cd ../; tar cf - $(RTEMS_BSP)/[bilsu]* | \
90                (cd $(prefix)/$(target)/rtems; tar xpBf - )
91        cd $(srcdir); tar cf - make/compilers make/custom make/os \
92                make/leaf.cfg make/directory.cfg make/main.cfg | \
93                (cd $(prefix)/$(target)/rtems; tar xpBf - )
94        echo RTEMS_BSP = $(RTEMS_BSP) > \
95                $(prefix)/$(target)/rtems/$(RTEMS_BSP)/Makefile.inc
96        cat make/Templates/Makefile.inc >> \
97                $(prefix)/$(target)/rtems/$(RTEMS_BSP)/Makefile.inc
98
99tests:
100        cd src/tests; $(MAKE) all
101
102env:    $(SRCS) dirs
Note: See TracBrowser for help on using the repository browser.