source: rtems/c/Makefile.in @ 866c9dd5

4.104.114.84.95
Last change on this file since 866c9dd5 was 67a2288, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 23, 1998 at 10:02:34 PM

Patch from Eric VALETTE <valette@…>:

Here is a enhanced version of my previous patch. This patch enables
to potentially share the new interrupt management code for all Intel targets
(pc386, go32 and force386) bsp.

Note : this patch is complete only for pc386. It still needs to

be completed for go32 and force386. I carrefully checked
that anything needed is in for force386 (only some function
name changes for IDT manipulation and GDT segment
manipulation). But anyway I will not be able to test any
of theses targets...

  • Property mode set to 100644
File size: 3.3 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@
10prefix = @prefix@
11exec_prefix = @exec_prefix@
12bindir = @bindir@
13libdir = @libdir@
14includedir = @includedir@
15target = @target@
16manext = 1
17mandir = @mandir@/man$(manext)
18program_prefix = @program_prefix@
19VPATH = @srcdir@
20RTEMS_ROOT = @top_srcdir@
21PROJECT_ROOT = @PROJECT_ROOT@
22
23include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
24include $(RTEMS_ROOT)/make/directory.cfg
25
26SUB_DIRS=build-tools src
27
28# We only make the install point for the KA9Q header files if it is enabled.
29LIBKA9Q_yes_V = lib/include/ka9q
30LIBKA9Q = $(LIBKA9Q_$(HAS_KA9Q)_V)
31
32# We only make the rtems++ install point if it is enabled.
33LIBRTEMSCPLUSPLUS_yes_V = lib/include/rtems++
34LIBRTEMSCPLUSPLUS = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)
35
36# directories to be created in install point
37CREATE_DIRS = \
38    lib lib/include lib/include/sys lib/include/rtems \
39    lib/include/rtems/score lib/include/rtems/rtems lib/include/rtems/posix \
40    lib/include/netinet lib/include/libc lib/include/libc/sys \
41    lib/include/motorola lib/include/zilog \
42    $(LIBKA9Q) \
43    $(LIBRTEMSCPLUSPLUS) \
44    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'
51# if something is added to TARGET_VARIANTS, then account for it here
52make_src_makefiles: Makefile.in Makefile
53        find . -name Makefile -exec grep -q ^preinstall {} \; -print > make_src_makefiles
54
55pre_install_src: env make_src_makefiles
56        cd build-tools/scripts; $(MAKE)
57        CURRDIR=`pwd`; \
58        for i in `cat make_src_makefiles` ; do \
59                DIR=`dirname $$i`; \
60                cd $$DIR; \
61                $(MAKE) preinstall; \
62                cd $$CURRDIR; \
63        done
64all: pre_install_src env
65debug: env
66profile: env
67
68install: all install_files
69debug_install: env debug install_files
70profile_install: env profile install_files
71
72debug_all: debug
73profile_all: profile
74
75# top level clean/clobber will delete the install points
76clean_WRAPUP = $(MAKE) clean_wrapup
77clobber_WRAPUP = $(MAKE) clean_wrapup
78
79clean_wrapup: clean_tools clean_dirs clean_modules
80
81.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
82
83dirs:
84        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
85        if test -d $(PROJECT_ROOT)/c/src/lib/libhwapi; then \
86                (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs) \
87        fi
88
89distclean: clobber
90
91clean_dirs:
92        $(RM) -r $(PROJECT_RELEASE)
93
94clean_tools:
95        cd build-tools; $(MAKE) clean
96
97$(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc: $(PROJECT_ROOT)/make/Templates/Makefile.inc
98        echo "RTEMS_BSP = $(RTEMS_BSP)" > $@
99        $(CAT) $< >> $@
100
101# NOTE: The wildcard on the install should pick up everything except
102#       the tests directory.  This significantly minimizes the install size.
103
104install_files: $(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc
105        -$(MKDIR) $(prefix)/
106        -$(MKDIR) $(prefix)/rtems
107        -$(RM) -rf $(prefix)/rtems/$(RTEMS_BSP)
108        cd ../; tar cf - $(RTEMS_BSP)/[bilsuM]* | \
109                (cd $(prefix)/rtems; tar xpBf - )
110        cd ../make; $(MAKE) RTEMS_BSP=$(RTEMS_BSP) install
111
112tests:
113        cd src/tests; $(MAKE) all
114
115debug_tests: debug
116        cd src/tests; $(MAKE) debug
117
118profile_tests: profile
119        cd src/tests; $(MAKE) profile
120
121env:    $(SRCS) dirs
Note: See TracBrowser for help on using the repository browser.