source: rtems/c/Makefile.in @ f5bd03c

4.104.114.84.95
Last change on this file since f5bd03c was f5bd03c, checked in by Joel Sherrill <joel.sherrill@…>, on May 23, 1997 at 9:44:19 PM

KA9Q stack removed prior to testing for 4.0.0 public release.

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