source:
rtems/make/main.cfg
@
d74fdb5
Last change on this file since d74fdb5 was d74fdb5, checked in by Joel Sherrill <joel.sherrill@…>, on 07/07/00 at 16:46:52 | |
---|---|
|
|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[bffb938] | 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) | |
[d74fdb5] | 15 | PROJECT_BIN=$(PROJECT_ROOT)/bin |
[bffb938] | 16 | PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include |
17 | PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools | |
18 | ||
19 | # | |
[d6c83529] | 20 | # Target architecture; may be changed as per 'make "ARCH=debug"' |
[bffb938] | 21 | # This is where the object files get put. |
22 | # | |
23 | ||
[d6c83529] | 24 | ARCH=o-optimize |
[bffb938] | 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 | # Default makefile name | |
38 | # May be overridden by command line macro assignment | |
39 | # | |
40 | ||
41 | MAKEFILE=Makefile | |
42 | ||
43 | # | |
44 | # Target variant names | |
45 | # | |
[d6c83529] | 46 | TARGET_VARIANTS = optimize debug profile |
[bffb938] | 47 | |
48 | # | |
[d6c83529] | 49 | # Generate list of object directories: o-optimize, o-debug, o-profile |
[bffb938] | 50 | # |
[d6c83529] | 51 | VARIANTS=${TARGET_VARIANTS:%=o-%} |
[bffb938] | 52 | |
53 | # | |
54 | # List of "recursion-able" targets for directory Makefiles | |
55 | # | |
56 | ||
[29e68b75] | 57 | RECURSE_TARGETS=all depend install \ |
[6693a68] | 58 | preinstall-recursive \ |
[29e68b75] | 59 | $(TARGET_VARIANTS) |
[bffb938] | 60 | |
61 | ${ARCH}: | |
[817466c] | 62 | test -d ${ARCH} || mkdir ${ARCH} |
[bffb938] | 63 | |
[9608320] | 64 | ifndef AUTOMAKE |
[29e68b75] | 65 | distclean-generic: |
[df49c60] | 66 | -$(RM) .#* $(CONFIG_CLEAN_FILES) |
[29e68b75] | 67 | -$(RM) -r $(CLOBBER_ADDITIONS) |
68 | ||
69 | clean-generic: | |
70 | -$(RM) a.out core mon.out gmon.out | |
71 | -$(RM) -r $(CLEAN_ADDITIONS) | |
[9608320] | 72 | endif |
[29e68b75] | 73 | |
74 | .PHONY: $(RECURSE_TARGETS) | |
75 | .PHONY: clean-generic | |
76 | .PHONY: distclean-generic |
Note: See TracBrowser
for help on using the repository browser.