source:
rtems/make/main.cfg
@
ccf2cfd
Last change on this file since ccf2cfd was ccf2cfd, checked in by Joel Sherrill <joel.sherrill@…>, on 09/13/02 at 13:39:52 | |
---|---|
|
|
File size: 1.5 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 | ||
[1db8d62f] | 14 | PROJECT_RELEASE=$(exec_prefix)/$(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 | ||
[ccf2cfd] | 24 | ifeq ($(VARIANT),) |
[d6c83529] | 25 | ARCH=o-optimize |
[bffb938] | 26 | VARIANT= |
[ccf2cfd] | 27 | else |
28 | ifeq ($(VARIANT),DEBUG) | |
29 | ARCH=o-debug | |
30 | VARIANT=DEBUG | |
31 | endif | |
32 | endif | |
[bffb938] | 33 | |
34 | # | |
35 | # Initial target for make(1) | |
36 | # Once this is established we can safely include other targets | |
37 | # within this make-include file. | |
38 | # | |
39 | ||
40 | default_target: all | |
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 | # | |
[d6c83529] | 52 | TARGET_VARIANTS = optimize debug profile |
[bffb938] | 53 | |
54 | # | |
[d6c83529] | 55 | # Generate list of object directories: o-optimize, o-debug, o-profile |
[bffb938] | 56 | # |
[d6c83529] | 57 | VARIANTS=${TARGET_VARIANTS:%=o-%} |
[bffb938] | 58 | |
59 | # | |
60 | # List of "recursion-able" targets for directory Makefiles | |
61 | # | |
62 | ||
[29e68b75] | 63 | RECURSE_TARGETS=all depend install \ |
[6693a68] | 64 | preinstall-recursive \ |
[29e68b75] | 65 | $(TARGET_VARIANTS) |
[bffb938] | 66 | |
67 | ${ARCH}: | |
[817466c] | 68 | test -d ${ARCH} || mkdir ${ARCH} |
[bffb938] | 69 | |
[9608320] | 70 | ifndef AUTOMAKE |
[29e68b75] | 71 | distclean-generic: |
[df49c60] | 72 | -$(RM) .#* $(CONFIG_CLEAN_FILES) |
[29e68b75] | 73 | -$(RM) -r $(CLOBBER_ADDITIONS) |
74 | ||
75 | clean-generic: | |
76 | -$(RM) a.out core mon.out gmon.out | |
77 | -$(RM) -r $(CLEAN_ADDITIONS) | |
[9608320] | 78 | endif |
[29e68b75] | 79 | |
80 | .PHONY: $(RECURSE_TARGETS) | |
81 | .PHONY: clean-generic | |
82 | .PHONY: distclean-generic |
Note: See TracBrowser
for help on using the repository browser.