1 | SAMPLE=nfsClientTest |
---|
2 | PGM=${ARCH}/$(SAMPLE).exe |
---|
3 | |
---|
4 | MANAGERS=all |
---|
5 | |
---|
6 | # C source names, if any, go here -- minus the .c |
---|
7 | C_PIECES=init dirutils FilesystemImage |
---|
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 | |
---|
31 | override DEFINES += |
---|
32 | CPPFLAGS += |
---|
33 | CFLAGS_LD += # -Wl,--defsym -Wl,HeapSize=0xC0000 |
---|
34 | CFLAGS_OPTIMIZE_V += |
---|
35 | CFLAGS_DEBUG_V += -v -qrtems_debug |
---|
36 | |
---|
37 | LD_PATHS += |
---|
38 | |
---|
39 | CFLAGS += |
---|
40 | LD_LIBS += -lnfs |
---|
41 | |
---|
42 | # |
---|
43 | # Add your list of files to delete here. The config files |
---|
44 | # already know how to delete some stuff, so you may want |
---|
45 | # to just run 'make clean' first to see what gets missed. |
---|
46 | # 'make clobber' already includes 'make clean' |
---|
47 | # |
---|
48 | |
---|
49 | CLEAN_ADDITIONS += FilesystemImage FilesystemImage.c FilesystemImage.h |
---|
50 | CLOBBER_ADDITIONS += |
---|
51 | |
---|
52 | all: ${ARCH} $(SRCS) $(PGM) |
---|
53 | |
---|
54 | ${PGM}: $(OBJS) $(LINK_FILES) |
---|
55 | $(make-exe) |
---|
56 | |
---|
57 | $(ARCH)/init.o: init.c FilesystemImage.h |
---|
58 | |
---|
59 | FilesystemImage: $(ARCH) rootfs/etc/host.conf rootfs/etc/hosts rootfs/rtems_logo.jpg |
---|
60 | cd rootfs ; \ |
---|
61 | tar cf ../FilesystemImage --exclude CVS --exclude .cvsignore . |
---|
62 | |
---|
63 | FilesystemImage.c: $(ARCH) FilesystemImage |
---|
64 | $(PROJECT_ROOT)/bin/rtems-bin2c FilesystemImage FilesystemImage |
---|
65 | |
---|
66 | |
---|
67 | # Install the program(s), appending _g or _p as appropriate. |
---|
68 | # for include files, just use $(INSTALL) |
---|
69 | install: all |
---|
70 | $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests |
---|