[046d88c] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | PGM=${ARCH}/mcast.exe |
---|
| 6 | |
---|
| 7 | MANAGERS=all |
---|
| 8 | |
---|
| 9 | C_FILES=init.c mcast.c mcast_route.c FilesystemImage.c |
---|
| 10 | C_O_FILES=$(C_FILES:%.c=${ARCH}/%.o) |
---|
| 11 | |
---|
| 12 | H_FILES= |
---|
| 13 | |
---|
| 14 | SRCS=$(DOCS) $(C_FILES) $(H_FILES) |
---|
| 15 | OBJS=$(C_O_FILES) |
---|
| 16 | |
---|
| 17 | include $(RTEMS_MAKEFILE_PATH)/Makefile.inc |
---|
| 18 | include $(RTEMS_CUSTOM) |
---|
| 19 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
| 20 | |
---|
| 21 | # |
---|
| 22 | # (OPTIONAL) Add local stuff here using += |
---|
| 23 | # |
---|
| 24 | |
---|
| 25 | DEFINES += |
---|
| 26 | CPPFLAGS += |
---|
| 27 | CFLAGS += |
---|
| 28 | CFLAGS_LD += |
---|
| 29 | # CFLAGS_LD += -Wl,--defsym -Wl,HeapSize=0xC0000 |
---|
| 30 | CFLAGS_OPTIMIZE_V += |
---|
| 31 | ## CFLAGS_DEBUG_V += -v -qrtems_debug |
---|
| 32 | |
---|
| 33 | LD_PATHS += |
---|
| 34 | LD_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 | |
---|
| 43 | CLEAN_ADDITIONS += FilesystemImage FilesystemImage.c FilesystemImage.h |
---|
| 44 | CLEAN_ADDITIONS += listener mcast |
---|
| 45 | CLOBBER_ADDITIONS += |
---|
| 46 | |
---|
| 47 | all: $(ARCH) $(SRCS) $(OBJS) $(PGM) listener mcast |
---|
| 48 | |
---|
| 49 | listener: listener.c mcast_params.h |
---|
| 50 | gcc -o $@ $< |
---|
| 51 | |
---|
| 52 | mcast: 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 | |
---|
| 65 | FilesystemImage: rootfs/etc/host.conf rootfs/etc/hosts |
---|
| 66 | cd rootfs ; tar cf ../FilesystemImage --exclude CVS --exclude .cvsignore . |
---|
| 67 | |
---|
| 68 | FilesystemImage.c: FilesystemImage |
---|
[5c0f2e9] | 69 | $(PROJECT_ROOT)/bin/rtems-bin2c FilesystemImage FilesystemImage |
---|
[046d88c] | 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) |
---|
| 76 | install: all |
---|
| 77 | # $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests |
---|