1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | # make/main.cfg |
---|
5 | # |
---|
6 | # Make(1) configuration file include'd by all Makefile's |
---|
7 | # |
---|
8 | |
---|
9 | # |
---|
10 | # where things are relative to PROJECT_ROOT; shouldn't need to change, |
---|
11 | # but could be overridden in custom files. |
---|
12 | # |
---|
13 | |
---|
14 | PROJECT_RELEASE=$(PROJECT_ROOT)/$(RTEMS_BSP) |
---|
15 | PROJECT_BIN=$(PROJECT_RELEASE)/bin |
---|
16 | PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include |
---|
17 | PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools |
---|
18 | |
---|
19 | # |
---|
20 | # Target architecture; may be changed as per 'make "ARCH=${TARGET_ARCH}-debug"' |
---|
21 | # This is where the object files get put. |
---|
22 | # |
---|
23 | |
---|
24 | ARCH=${TARGET_ARCH} |
---|
25 | |
---|
26 | VARIANT= |
---|
27 | |
---|
28 | # |
---|
29 | # Initial target for make(1) |
---|
30 | # Once this is established we can safely include other targets |
---|
31 | # within this make-include file. |
---|
32 | # |
---|
33 | |
---|
34 | default_target: all |
---|
35 | |
---|
36 | # |
---|
37 | # Describe the host os |
---|
38 | # |
---|
39 | # include $(PROJECT_ROOT)/make/target.cfg |
---|
40 | # include $(PROJECT_ROOT)/make/host.cfg |
---|
41 | |
---|
42 | # |
---|
43 | # Default makefile name |
---|
44 | # May be overridden by command line macro assignment |
---|
45 | # |
---|
46 | |
---|
47 | MAKEFILE=Makefile |
---|
48 | |
---|
49 | # |
---|
50 | # Target variant names |
---|
51 | # and rule to expand them into (for example): sun4 sun4-debug sun4-profile |
---|
52 | # Note compiler config may add to TARGET_VARIANTS |
---|
53 | # |
---|
54 | |
---|
55 | TARGET_VARIANTS = debug profile |
---|
56 | |
---|
57 | # |
---|
58 | # Generate list of object directories: sun4, sun4-debug, sun4-profile |
---|
59 | # |
---|
60 | VARIANTS=${TARGET_ARCH} ${TARGET_VARIANTS:%=${TARGET_ARCH}-%} |
---|
61 | |
---|
62 | # |
---|
63 | # List of "recursion-able" targets for directory Makefiles |
---|
64 | # |
---|
65 | |
---|
66 | RECURSE_TARGETS=all clean protos get clobber depend install \ |
---|
67 | $(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_install) |
---|
68 | |
---|
69 | ifeq ($(RTEMS_USE_OWN_PDIR),yes) |
---|
70 | MAKEFLAGS += --no-print-directory |
---|
71 | endif |
---|
72 | |
---|
73 | ${ARCH}: |
---|
74 | test -d ${ARCH} || $(MKDIR) ${ARCH} |
---|
75 | |
---|
76 | |
---|
77 | # general purpose forcing dependency; try to use .PHONY instead |
---|
78 | FORCEIT: |
---|
79 | |
---|
80 | FORCE: |
---|
81 | |
---|
82 | .PHONY: $(RECURSE_TARGETS) |
---|