source: network-demos/mcast/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.7 KB
Line 
1#
2#  $Id$
3#
4
5PGM=${ARCH}/mcast.exe
6
7MANAGERS=all
8
9C_FILES=init.c mcast.c mcast_route.c FilesystemImage.c
10C_O_FILES=$(C_FILES:%.c=${ARCH}/%.o)
11
12H_FILES=
13
14SRCS=$(DOCS) $(C_FILES) $(H_FILES)
15OBJS=$(C_O_FILES)
16
17include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
18include $(RTEMS_CUSTOM)
19include $(PROJECT_ROOT)/make/leaf.cfg
20
21#
22# (OPTIONAL) Add local stuff here using +=
23#
24
25DEFINES  +=
26CPPFLAGS +=
27CFLAGS   +=
28CFLAGS_LD +=
29# CFLAGS_LD += -Wl,--defsym -Wl,HeapSize=0xC0000
30CFLAGS_OPTIMIZE_V   +=
31## CFLAGS_DEBUG_V   += -v -qrtems_debug
32
33LD_PATHS  +=
34LD_LIBS   +=
35
36#
37# Add your list of files to delete here.  The config files
38#  already know how to delete some stuff, so you may want
39#  to just run 'make clean' first to see what gets missed.
40#  'make clobber' already includes 'make clean'
41#
42
43CLEAN_ADDITIONS += FilesystemImage FilesystemImage.c FilesystemImage.h
44CLEAN_ADDITIONS += listener mcast
45CLOBBER_ADDITIONS +=
46
47all:    $(ARCH) $(SRCS) $(OBJS) $(PGM) listener mcast
48
49listener: listener.c mcast_params.h
50        gcc -o $@ $<
51
52mcast: mcast.c mcast_params.h
53        gcc -o $@ $<
54
55$(PGM): $(ARCH) $(OBJS) $(LINK_FILES)
56
57$(ARCH)/init.o: $(ARCH) init.c FilesystemImage.c
58
59$(ARCH)/mcast_route.o: $(ARCH) mcast_route.c
60
61$(ARCH)/mcast.o: $(ARCH) mcast.c mcast_params.h
62
63$(ARCH)/FilesystemImage.o: $(ARCH) FilesystemImage.c
64
65FilesystemImage: rootfs/etc/host.conf rootfs/etc/hosts
66        cd rootfs ; tar cf ../FilesystemImage --exclude CVS --exclude .cvsignore .
67
68FilesystemImage.c: FilesystemImage
69        $(PROJECT_ROOT)/bin/rtems-bin2c FilesystemImage FilesystemImage
70
71${PGM}: $(OBJS) $(LINK_FILES)
72        $(make-exe)
73
74# Install the program(s), appending _g or _p as appropriate.
75# for include files, just use $(INSTALL)
76install:  all
77#       $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests
Note: See TracBrowser for help on using the repository browser.