Rev | Line | |
---|
[2536fb0] | 1 | SAMPLE=ntpdemo |
---|
| 2 | PGM=${ARCH}/$(SAMPLE).exe |
---|
| 3 | |
---|
| 4 | MANAGERS=io event semaphore |
---|
| 5 | |
---|
| 6 | # C source names, if any, go here -- minus the .c |
---|
| 7 | C_PIECES= init |
---|
| 8 | C_FILES=$(C_PIECES:%=%.c) |
---|
| 9 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
| 10 | |
---|
| 11 | H_FILES= |
---|
| 12 | |
---|
| 13 | DOCTYPES= |
---|
| 14 | DOCS=$(DOCTYPES:%=$(SAMPLE).%) |
---|
| 15 | |
---|
| 16 | SRCS=$(DOCS) $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
| 17 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
| 18 | |
---|
| 19 | PRINT_SRCS=$(DOCS) |
---|
| 20 | |
---|
| 21 | PGM=${ARCH}/$(SAMPLE).exe |
---|
| 22 | |
---|
| 23 | include $(RTEMS_MAKEFILE_PATH)/Makefile.inc |
---|
| 24 | include $(RTEMS_CUSTOM) |
---|
| 25 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
| 26 | |
---|
| 27 | # |
---|
| 28 | # (OPTIONAL) Add local stuff here using += |
---|
| 29 | # |
---|
| 30 | |
---|
[94e30bd] | 31 | override DEFINES += |
---|
[2536fb0] | 32 | CPPFLAGS += |
---|
| 33 | CFLAGS += |
---|
| 34 | CFLAGS_LD += -Wl,--defsym -Wl,HeapSize=0xC0000 |
---|
| 35 | CFLAGS_OPTIMIZE_V += |
---|
| 36 | CFLAGS_DEBUG_V += -v -qrtems_debug |
---|
| 37 | |
---|
| 38 | LD_PATHS += |
---|
| 39 | LD_LIBS += |
---|
| 40 | |
---|
| 41 | # |
---|
| 42 | # Add your list of files to delete here. The config files |
---|
| 43 | # already know how to delete some stuff, so you may want |
---|
| 44 | # to just run 'make clean' first to see what gets missed. |
---|
| 45 | # 'make clobber' already includes 'make clean' |
---|
| 46 | # |
---|
| 47 | |
---|
| 48 | CLEAN_ADDITIONS += |
---|
| 49 | CLOBBER_ADDITIONS += |
---|
| 50 | |
---|
| 51 | all: ${ARCH} $(SRCS) $(PGM) |
---|
| 52 | |
---|
| 53 | ${PGM}: $(OBJS) $(LINK_FILES) |
---|
| 54 | $(make-exe) |
---|
| 55 | |
---|
| 56 | # Install the program(s), appending _g or _p as appropriate. |
---|
| 57 | # for include files, just use $(INSTALL) |
---|
| 58 | install: all |
---|
| 59 | $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests |
---|
Note: See
TracBrowser
for help on using the repository browser.