1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../.. |
---|
9 | subdir = libbsp/m68k/ods68302/start302 |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@ |
---|
15 | |
---|
16 | PGM = ${ARCH}/start302.o |
---|
17 | |
---|
18 | ifeq ($(RTEMS_DEBUGGER),yes) |
---|
19 | RESET_S_PIECES = debugreset reset |
---|
20 | else |
---|
21 | CFLAGS += |
---|
22 | endif |
---|
23 | |
---|
24 | # C source names, if any, go here -- minus the .c |
---|
25 | C_PIECES = cpuboot |
---|
26 | C_FILES = $(C_PIECES:%=%.c) |
---|
27 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
28 | |
---|
29 | H_FILES = |
---|
30 | |
---|
31 | # Assembly source names, if any, go here -- minus the .S |
---|
32 | S_PIECES = $(RESET_S_PIECES) |
---|
33 | S_FILES = $(S_PIECES:%=%.S) |
---|
34 | S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o) |
---|
35 | |
---|
36 | SRCS = $(C_FILES) $(H_FILES) $(S_FILES) |
---|
37 | OBJS = $(S_O_FILES) $(C_O_FILES) |
---|
38 | |
---|
39 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
40 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
41 | |
---|
42 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
43 | |
---|
44 | # |
---|
45 | # (OPTIONAL) Add local stuff here using += |
---|
46 | # |
---|
47 | |
---|
48 | DEFINES += |
---|
49 | CPPFLAGS += |
---|
50 | CFLAGS += |
---|
51 | |
---|
52 | LD_PATHS += |
---|
53 | LD_LIBS += |
---|
54 | LDFLAGS += |
---|
55 | |
---|
56 | # |
---|
57 | # Add your list of files to delete here. The config files |
---|
58 | # already know how to delete some stuff, so you may want |
---|
59 | # to just run 'make clean' first to see what gets missed. |
---|
60 | # 'make clobber' already includes 'make clean' |
---|
61 | # |
---|
62 | |
---|
63 | CLEAN_ADDITIONS += |
---|
64 | CLOBBER_ADDITIONS += |
---|
65 | |
---|
66 | ${PGM}: ${OBJS} |
---|
67 | $(make-rel) |
---|
68 | |
---|
69 | all: ${ARCH} $(SRCS) $(OBJS) $(PGM) |
---|
70 | $(INSTALL_VARIANT) -m 755 ${PGM} $(PROJECT_RELEASE)/lib |
---|
71 | |
---|
72 | # Install the program(s), appending _g or _p as appropriate. |
---|
73 | # for include files, just use $(INSTALL_CHANGE) |
---|
74 | |
---|
75 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
76 | cd $(top_builddir) \ |
---|
77 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|