source: rtems/c/Makefile.in @ 0074691a

4.104.114.84.95
Last change on this file since 0074691a was 91333c2, checked in by Joel Sherrill <joel.sherrill@…>, on 07/31/97 at 22:04:17

Merged very large and much appreciated patch from Chris Johns
<cjohns@…>. This patch includes the ods68302 bsp,
the RTEMS++ class library, and the rtems++ test.

  • 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                $(LIBKA9Q) \
43                $(LIBRTEMSCPLUSPLUS) \
44                lib 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'
51all $(TARGET_VARIANTS:%=%_install) $(TARGET_VARIANTS:%=%_all): env
52
53# top level clean/clobber will delete the install points
54clean_WRAPUP = $(MAKE) clean_wrapup
55clobber_WRAPUP = $(MAKE) clean_wrapup
56
57clean_wrapup: clean_tools clean_dirs clean_modules
58
59.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
60
61#  XXX The link is temporary while switching to -specs options.
62dirs:
63        -test -d $(PROJECT_ROOT)/c/src/lib/libhwapi && \
64            (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs)
65        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
66        -ln -s $(PROJECT_ROOT)/$(RTEMS_BSP)/include \
67                $(PROJECT_ROOT)/$(RTEMS_BSP)/lib/include
68
69distclean: clobber
70
71clean_dirs:
72        $(RM) -r $(PROJECT_RELEASE)
73
74clean_tools:
75        cd build-tools; $(MAKE) clean
76
77# NOTE: The wildcard on the install should pick up everything except
78#       the tests directory.  This significantly minimizes the install size.
79install: all
80         -$(MKDIR) $(prefix)/$(target)
81         -$(MKDIR) $(prefix)/$(target)/rtems
82         -$(MKDIR) $(prefix)/$(target)/rtems/make
83         -$(MKDIR) $(prefix)/$(target)/rtems/make/compilers
84         -$(MKDIR) $(prefix)/$(target)/rtems/make/custom
85         -$(MKDIR) $(prefix)/$(target)/rtems/make/os
86        -rm -rf $(prefix)/$(target)/rtems/$(RTEMS_BSP)
87        cd ../; tar cf - $(RTEMS_BSP)/[bilsu]* | \
88                (cd $(prefix)/$(target)/rtems; tar xpBf - )
89        cd $(srcdir); tar cf - make/compilers make/custom make/os \
90                make/leaf.cfg make/directory.cfg make/main.cfg | \
91                (cd $(prefix)/$(target)/rtems; tar xpBf - )
92        echo RTEMS_BSP = $(RTEMS_BSP) > \
93                $(prefix)/$(target)/rtems/$(RTEMS_BSP)/Makefile.inc
94        cat make/Templates/Makefile.inc >> \
95                $(prefix)/$(target)/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.