1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | exec_prefix = @exec_prefix@ |
---|
8 | bindir = @bindir@ |
---|
9 | libdir = @libdir@ |
---|
10 | includedir = @includedir@ |
---|
11 | manext = 1 |
---|
12 | mandir = @mandir@/man$(manext) |
---|
13 | |
---|
14 | # FIXME: $EXEEXT should be set in a central cfg-file used for native |
---|
15 | # compiling (e.g. gcc.cfg) instead of setting EXEEXE here. |
---|
16 | EXEEXT=@EXEEXT@ |
---|
17 | |
---|
18 | VPATH = @srcdir@ |
---|
19 | RTEMS_ROOT = @top_srcdir@ |
---|
20 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
21 | |
---|
22 | # we use host compiler in this directory |
---|
23 | USE_HOST_COMPILER=yes |
---|
24 | |
---|
25 | # C source names, if any, go here -- minus the .c |
---|
26 | C_PIECES=cklength eolstrip packhex unhex |
---|
27 | C_FILES=$(C_PIECES:%=%.c) |
---|
28 | C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o) |
---|
29 | |
---|
30 | H_FILES= |
---|
31 | |
---|
32 | SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) |
---|
33 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
34 | |
---|
35 | # FIXME: building into $(ARCH) doesn't make sense for host programs |
---|
36 | PGMS=$(ARCH)/cklength$(EXEEXT) $(ARCH)/eolstrip$(EXEEXT) \ |
---|
37 | $(ARCH)/packhex$(EXEEXT) $(ARCH)/unhex$(EXEEXT) |
---|
38 | |
---|
39 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
40 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
41 | |
---|
42 | # |
---|
43 | # (OPTIONAL) Add local stuff here using += |
---|
44 | # |
---|
45 | |
---|
46 | DEFINES += |
---|
47 | CPPFLAGS += -I. |
---|
48 | CFLAGS += |
---|
49 | |
---|
50 | LD_PATHS += |
---|
51 | LD_LIBS += |
---|
52 | LDFLAGS += |
---|
53 | |
---|
54 | # |
---|
55 | # Add your list of files to delete here. The config files |
---|
56 | # already know how to delete some stuff, so you may want |
---|
57 | # to just run 'make clean' first to see what gets missed. |
---|
58 | # 'make clobber' already includes 'make clean' |
---|
59 | # |
---|
60 | |
---|
61 | CLEAN_ADDITIONS += $(HOST_ARCH) |
---|
62 | CLOBBER_ADDITIONS += |
---|
63 | |
---|
64 | DESTDIR=${PROJECT_RELEASE}/build-tools |
---|
65 | |
---|
66 | $(DESTDIR): |
---|
67 | @INSTALL@ $(INSTDIRFLAGS) $@ |
---|
68 | |
---|
69 | all: $(ARCH) $(DESTDIR) $(SRCS) $(PGMS) |
---|
70 | @INSTALL@ $(INSTBINFLAGS) $(PGMS) $(DESTDIR) |
---|