source: rtems/c/Makefile.in @ 9fbba98

4.104.114.84.95
Last change on this file since 9fbba98 was c24fef3, checked in by Joel Sherrill <joel.sherrill@…>, on 04/15/97 at 18:00:03

Added directories to place test output screens into as part of fixing
difftest.

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