[0074691a] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[d8ff793] | 7 | top_srcdir = @top_srcdir@ |
---|
[6693a68] | 8 | top_builddir = ../../../.. |
---|
| 9 | subdir = libbsp/m68k/ods68302/start302 |
---|
[0074691a] | 10 | |
---|
[6693a68] | 11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
[d8ff793] | 12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
| 13 | |
---|
| 14 | VPATH = @srcdir@ |
---|
| 15 | |
---|
[6693a68] | 16 | PGM = ${ARCH}/start302.o |
---|
[0074691a] | 17 | |
---|
| 18 | ifeq ($(RTEMS_DEBUGGER),yes) |
---|
[6693a68] | 19 | RESET_S_PIECES = debugreset reset |
---|
| 20 | else |
---|
| 21 | CFLAGS += |
---|
| 22 | endif |
---|
[0074691a] | 23 | |
---|
| 24 | # C source names, if any, go here -- minus the .c |
---|
[6693a68] | 25 | C_PIECES = cpuboot |
---|
| 26 | C_FILES = $(C_PIECES:%=%.c) |
---|
| 27 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
[0074691a] | 28 | |
---|
[6693a68] | 29 | H_FILES = |
---|
[0074691a] | 30 | |
---|
[0162910] | 31 | # Assembly source names, if any, go here -- minus the .S |
---|
[6693a68] | 32 | S_PIECES = $(RESET_S_PIECES) |
---|
| 33 | S_FILES = $(S_PIECES:%=%.S) |
---|
| 34 | S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o) |
---|
[0074691a] | 35 | |
---|
[6693a68] | 36 | SRCS = $(C_FILES) $(H_FILES) $(S_FILES) |
---|
| 37 | OBJS = $(S_O_FILES) $(C_O_FILES) |
---|
[0074691a] | 38 | |
---|
[6693a68] | 39 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
[cb5bfe4] | 40 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
[0074691a] | 41 | |
---|
[6693a68] | 42 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
| 43 | |
---|
[0074691a] | 44 | # |
---|
| 45 | # (OPTIONAL) Add local stuff here using += |
---|
| 46 | # |
---|
| 47 | |
---|
[6693a68] | 48 | DEFINES += |
---|
[0074691a] | 49 | CPPFLAGS += |
---|
[6693a68] | 50 | CFLAGS += |
---|
[0074691a] | 51 | |
---|
[6693a68] | 52 | LD_PATHS += |
---|
| 53 | LD_LIBS += |
---|
| 54 | LDFLAGS += |
---|
[0074691a] | 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) |
---|
[6693a68] | 68 | |
---|
| 69 | all: ${ARCH} $(SRCS) $(OBJS) $(PGM) |
---|
| 70 | $(INSTALL_VARIANT) -m 755 ${PGM} $(PROJECT_RELEASE)/lib |
---|
[0074691a] | 71 | |
---|
| 72 | # Install the program(s), appending _g or _p as appropriate. |
---|
[8548fe0] | 73 | # for include files, just use $(INSTALL_CHANGE) |
---|
[0074691a] | 74 | |
---|
[08b5f55] | 75 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
[d8ff793] | 76 | cd $(top_builddir) \ |
---|
| 77 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|