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

4.104.114.84.95
Last change on this file since 9b3853a was 1f0f3e35, checked in by Joel Sherrill <joel.sherrill@…>, on 05/27/97 at 23:39:29

added ka9q stack

  • Property mode set to 100644
File size: 2.9 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# 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        -test -d $(PROJECT_ROOT)/c/src/lib/libhwapi && \
59            (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs)
60        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
61        -ln -s $(PROJECT_ROOT)/$(RTEMS_BSP)/include \
62                $(PROJECT_ROOT)/$(RTEMS_BSP)/lib/include
63
64distclean: clobber
65
66clean_dirs:
67        $(RM) -r $(PROJECT_RELEASE)
68
69clean_tools:
70        cd build-tools; $(MAKE) clean
71
72# NOTE: The wildcard on the install should pick up everything except
73#       the tests directory.  This significantly minimizes the install size.
74install: all
75         -$(MKDIR) $(prefix)/$(target)
76         -$(MKDIR) $(prefix)/$(target)/rtems
77         -$(MKDIR) $(prefix)/$(target)/rtems/make
78         -$(MKDIR) $(prefix)/$(target)/rtems/make/compilers
79         -$(MKDIR) $(prefix)/$(target)/rtems/make/custom
80         -$(MKDIR) $(prefix)/$(target)/rtems/make/os
81        -rm -rf $(prefix)/$(target)/rtems/$(RTEMS_BSP)
82        cd ../; tar cf - $(RTEMS_BSP)/[bilsu]* | \
83                (cd $(prefix)/$(target)/rtems; tar xpBf - )
84        cd $(srcdir); tar cf - make/compilers make/custom make/os \
85                make/leaf.cfg make/directory.cfg make/main.cfg | \
86                (cd $(prefix)/$(target)/rtems; tar xpBf - )
87        echo RTEMS_BSP = $(RTEMS_BSP) > \
88                $(prefix)/$(target)/rtems/$(RTEMS_BSP)/Makefile.inc
89        cat make/Templates/Makefile.inc >> \
90                $(prefix)/$(target)/rtems/$(RTEMS_BSP)/Makefile.inc
91
92tests:
93        cd src/tests; $(MAKE) all
94
95env:    $(SRCS) dirs
96
Note: See TracBrowser for help on using the repository browser.