[7150f00f] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[674c900] | 7 | VPATH = @srcdir@ |
---|
[5c3511e] | 8 | RTEMS_ROOT = @top_srcdir@ |
---|
[674c900] | 9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
[7150f00f] | 10 | exec_prefix = @exec_prefix@ |
---|
| 11 | bindir = @bindir@ |
---|
| 12 | libdir = @libdir@ |
---|
| 13 | includedir = @includedir@ |
---|
| 14 | manext = 1 |
---|
| 15 | mandir = @mandir@/man$(manext) |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | VPATH=@srcdir@ |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | # we use host compiler in this directory |
---|
| 22 | USE_HOST_COMPILER=yes |
---|
| 23 | |
---|
| 24 | # C source names, if any, go here -- minus the .c |
---|
[96d56b3] | 25 | C_PIECES= |
---|
| 26 | CC_PIECES=bin2boot Header Image |
---|
[7150f00f] | 27 | C_FILES=$(C_PIECES:%=%.c) |
---|
[96d56b3] | 28 | CC_FILES=$(CC_PIECES:%=%.cc) |
---|
[7150f00f] | 29 | C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o) |
---|
[96d56b3] | 30 | CC_O_FILES=$(CC_PIECES:%=$(ARCH)/%.o) |
---|
[7150f00f] | 31 | |
---|
[96d56b3] | 32 | H_FILES=bytetype.h Header.h Image.h |
---|
[7150f00f] | 33 | |
---|
| 34 | SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) |
---|
| 35 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
| 36 | |
---|
| 37 | PGMS=$(ARCH)/bin2boot |
---|
| 38 | |
---|
[5c3511e] | 39 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
[7150f00f] | 40 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
| 41 | |
---|
| 42 | # |
---|
| 43 | # (OPTIONAL) Add local stuff here using += |
---|
| 44 | # |
---|
| 45 | |
---|
| 46 | DEFINES += |
---|
| 47 | CPPFLAGS += |
---|
| 48 | CFLAGS += |
---|
[96d56b3] | 49 | CXXFLAGS += -g -Wall |
---|
[7150f00f] | 50 | |
---|
| 51 | LD_PATHS += |
---|
[96d56b3] | 52 | LD_LIBS += -lstdc++ |
---|
| 53 | LDFLAGS += -g |
---|
[7150f00f] | 54 | |
---|
| 55 | # |
---|
| 56 | # Add your list of files to delete here. The config files |
---|
| 57 | # already know how to delete some stuff, so you may want |
---|
| 58 | # to just run 'make clean' first to see what gets missed. |
---|
| 59 | # 'make clobber' already includes 'make clean' |
---|
| 60 | # |
---|
| 61 | |
---|
| 62 | CLEAN_ADDITIONS += $(HOST_ARCH) |
---|
| 63 | CLOBBER_ADDITIONS += |
---|
| 64 | |
---|
| 65 | all: $(ARCH) $(SRCS) $(PGMS) |
---|
[fc56b90c] | 66 | $(INSTALL) -m 555 $(PGMS) ${PROJECT_RELEASE}/build-tools |
---|
[96d56b3] | 67 | |
---|
| 68 | $(ARCH)/bin2boot: $(OBJS) |
---|
| 69 | $(CC) $(LDFLAGS) $^ -o $@ $(LD_LIBS) |
---|
| 70 | $(ARCH)/bin2boot.o : bin2boot.cc Header.h Image.h bytetype.h |
---|
| 71 | $(ARCH)/Header.o: Header.cc Header.h bytetype.h |
---|
| 72 | $(ARCH)/Image.o: Image.cc Image.h bytetype.h |
---|
| 73 | |
---|