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