4.11network-demos-4-10-branch
Last change
on this file since 81f6c2e was
94e30bd,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/13/09 at 18:55:13
|
2009-05-13 Joel Sherrill <joel.sherrill@…>
- Makefile: Allow overrides from invoking environment.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | SAMPLE=tftp |
---|
6 | PGM=${ARCH}/$(SAMPLE).exe |
---|
7 | |
---|
8 | MANAGERS=io event semaphore |
---|
9 | |
---|
10 | # C source names, if any, go here -- minus the .c |
---|
11 | C_PIECES= init test |
---|
12 | C_FILES=$(C_PIECES:%=%.c) |
---|
13 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
14 | |
---|
15 | H_FILES= |
---|
16 | |
---|
17 | DOCTYPES= |
---|
18 | DOCS=$(DOCTYPES:%=$(SAMPLE).%) |
---|
19 | |
---|
20 | SRCS=$(DOCS) $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
21 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
22 | |
---|
23 | PRINT_SRCS=$(DOCS) |
---|
24 | |
---|
25 | PGM=${ARCH}/$(SAMPLE).exe |
---|
26 | |
---|
27 | include $(RTEMS_MAKEFILE_PATH)/Makefile.inc |
---|
28 | include $(RTEMS_CUSTOM) |
---|
29 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
30 | |
---|
31 | # |
---|
32 | # (OPTIONAL) Add local stuff here using += |
---|
33 | # |
---|
34 | |
---|
35 | override DEFINES += |
---|
36 | CPPFLAGS += |
---|
37 | CFLAGS += |
---|
38 | CFLAGS_LD += -Wl,--defsym -Wl,HeapSize=0x40000 |
---|
39 | CFLAGS_OPTIMIZE_V += |
---|
40 | CFLAGS_DEBUG_V += -qrtems_debug # -v |
---|
41 | |
---|
42 | |
---|
43 | LD_PATHS += |
---|
44 | LD_LIBS += |
---|
45 | |
---|
46 | # |
---|
47 | # Add your list of files to delete here. The config files |
---|
48 | # already know how to delete some stuff, so you may want |
---|
49 | # to just run 'make clean' first to see what gets missed. |
---|
50 | # 'make clobber' already includes 'make clean' |
---|
51 | # |
---|
52 | |
---|
53 | CLEAN_ADDITIONS += |
---|
54 | CLOBBER_ADDITIONS += |
---|
55 | |
---|
56 | all: ${ARCH} $(SRCS) $(PGM) |
---|
57 | |
---|
58 | ${PGM}: $(OBJS) $(LINK_FILES) |
---|
59 | $(make-exe) |
---|
60 | |
---|
61 | # Install the program(s), appending _g or _p as appropriate. |
---|
62 | # for include files, just use $(INSTALL) |
---|
63 | install: all |
---|
64 | $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests |
---|
Note: See
TracBrowser
for help on using the repository browser.