source: network-demos/nfsClientTest/Makefile @ c8d1675

4.11network-demos-4-10-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branch
Last change on this file since c8d1675 was c8d1675, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 16, 2007 at 3:32:18 PM

2007-07-16 Joel Sherrill <joel.sherrill@…>

Initial add of NFS Client test.

  • .cvsignore, Makefile, dirutils.c, init.c, rootfs/rtems_logo.jpg: New files.
  • Property mode set to 100644
File size: 1.8 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
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) $(ARCH)/tarfile.o
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
43OBJDUMP=$(OBJCOPY:copy=dump)
44
45CFLAGS   += 
46LD_LIBS  += -lrtemsNfs
47
48#
49# Add your list of files to delete here.  The config files
50#  already know how to delete some stuff, so you may want
51#  to just run 'make clean' first to see what gets missed.
52#  'make clobber' already includes 'make clean'
53#
54
55CLEAN_ADDITIONS += tarfile obj_format
56CLOBBER_ADDITIONS +=
57
58# strip out flags gcc knows but LD doesn't like -- add as needed
59LD_CPU_CFLAGS=$(CPU_CFLAGS:-mstrict-align:)
60
61all:    ${ARCH} $(SRCS) $(PGM)
62
63obj_format:
64        $(OBJDUMP) -f $(ARCH)/init.o | grep .o: | \
65            sed -e 's/^.*format //' >obj_format
66
67${PGM}: $(OBJS) $(LINK_FILES)
68        $(make-exe)
69
70$(ARCH)/tarfile.o: $(ARCH) obj_format
71        cd rootfs ; tar cf ../$(ARCH)/tarfile --exclude CVS .
72        cp $(ARCH)/tarfile .
73        $(OBJCOPY) -I binary -O `cat obj_format` tarfile $(ARCH)/tarfile.o
74        $(LD) $(LD_CPU_CFLAGS) -r -o $(ARCH)/temp.o $(ARCH)/tarfile.o
75
76# Install the program(s), appending _g or _p as appropriate.
77# for include files, just use $(INSTALL)
78install:  all
79        $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests
Note: See TracBrowser for help on using the repository browser.