[c8d1675] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | SAMPLE=nfsClientTest |
---|
| 6 | PGM=${ARCH}/$(SAMPLE).exe |
---|
| 7 | |
---|
| 8 | MANAGERS=all |
---|
| 9 | |
---|
| 10 | # C source names, if any, go here -- minus the .c |
---|
[591682d] | 11 | C_PIECES=init dirutils FilesystemImage |
---|
[c8d1675] | 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) |
---|
[591682d] | 21 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
[c8d1675] | 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 | DEFINES += |
---|
| 36 | CPPFLAGS += |
---|
| 37 | CFLAGS_LD += # -Wl,--defsym -Wl,HeapSize=0xC0000 |
---|
| 38 | CFLAGS_OPTIMIZE_V += |
---|
| 39 | CFLAGS_DEBUG_V += -v -qrtems_debug |
---|
| 40 | |
---|
| 41 | LD_PATHS += |
---|
| 42 | |
---|
| 43 | CFLAGS += |
---|
[591682d] | 44 | LD_LIBS += -lnfs |
---|
[c8d1675] | 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 | |
---|
[591682d] | 53 | CLEAN_ADDITIONS += FilesystemImage FilesystemImage.c FilesystemImage.h |
---|
[c8d1675] | 54 | CLOBBER_ADDITIONS += |
---|
| 55 | |
---|
| 56 | all: ${ARCH} $(SRCS) $(PGM) |
---|
| 57 | |
---|
| 58 | ${PGM}: $(OBJS) $(LINK_FILES) |
---|
| 59 | $(make-exe) |
---|
| 60 | |
---|
[591682d] | 61 | $(ARCH)/init.o: init.c FilesystemImage.h |
---|
| 62 | |
---|
| 63 | FilesystemImage: $(ARCH) rootfs/etc/host.conf rootfs/etc/hosts rootfs/rtems_logo.jpg |
---|
| 64 | cd rootfs ; \ |
---|
| 65 | tar cf ../FilesystemImage --exclude CVS --exclude .cvsignore . |
---|
| 66 | |
---|
| 67 | FilesystemImage.c: $(ARCH) FilesystemImage |
---|
[5c0f2e9] | 68 | $(PROJECT_ROOT)/bin/rtems-bin2c FilesystemImage FilesystemImage |
---|
[591682d] | 69 | |
---|
[c8d1675] | 70 | |
---|
| 71 | # Install the program(s), appending _g or _p as appropriate. |
---|
| 72 | # for include files, just use $(INSTALL) |
---|
| 73 | install: all |
---|
| 74 | $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests |
---|