source: network-demos/nfsClientTest/Makefile @ 5c0f2e9

4.11network-demos-4-10-branchnetwork-demos-4-9-branch
Last change on this file since 5c0f2e9 was 5c0f2e9, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/07 at 21:40:42

2007-11-09 Joel Sherrill <joel.sherrill@…>

  • Makefile: bin2c now rtems-bin2c.
  • Property mode set to 100644
File size: 1.6 KB
Line 
1#
2#  $Id$
3#
4
5SAMPLE=nfsClientTest
6PGM=${ARCH}/$(SAMPLE).exe
7
8MANAGERS=all
9
10# C source names, if any, go here -- minus the .c
11C_PIECES=init dirutils FilesystemImage
12C_FILES=$(C_PIECES:%=%.c)
13C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
14
15H_FILES=
16
17DOCTYPES=
18DOCS=$(DOCTYPES:%=$(SAMPLE).%)
19
20SRCS=$(DOCS) $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
21OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
22
23PRINT_SRCS=$(DOCS)
24
25PGM=${ARCH}/$(SAMPLE).exe
26
27include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
28include $(RTEMS_CUSTOM)
29include $(PROJECT_ROOT)/make/leaf.cfg
30
31#
32# (OPTIONAL) Add local stuff here using +=
33#
34
35DEFINES  +=
36CPPFLAGS +=
37CFLAGS_LD += # -Wl,--defsym -Wl,HeapSize=0xC0000
38CFLAGS_OPTIMIZE_V   +=
39CFLAGS_DEBUG_V   += -v -qrtems_debug
40
41LD_PATHS  +=
42
43CFLAGS   +=
44LD_LIBS  += -lnfs
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
53CLEAN_ADDITIONS += FilesystemImage FilesystemImage.c FilesystemImage.h
54CLOBBER_ADDITIONS +=
55
56all:    ${ARCH} $(SRCS) $(PGM)
57
58${PGM}: $(OBJS) $(LINK_FILES)
59        $(make-exe)
60
61$(ARCH)/init.o: init.c FilesystemImage.h
62
63FilesystemImage: $(ARCH) rootfs/etc/host.conf rootfs/etc/hosts rootfs/rtems_logo.jpg
64        cd rootfs ; \
65            tar cf ../FilesystemImage --exclude CVS --exclude .cvsignore .
66
67FilesystemImage.c: $(ARCH) FilesystemImage
68        $(PROJECT_ROOT)/bin/rtems-bin2c FilesystemImage FilesystemImage
69
70
71# Install the program(s), appending _g or _p as appropriate.
72# for include files, just use $(INSTALL)
73install:  all
74        $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests
Note: See TracBrowser for help on using the repository browser.