[ba46ffa6] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[6693a68] | 7 | top_srcdir = @top_srcdir@ |
---|
[e1d8abb] | 8 | top_builddir = ../../.. |
---|
| 9 | subdir = powerpc/mcp750/residual |
---|
[6693a68] | 10 | |
---|
| 11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
[ba46ffa6] | 12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
| 13 | |
---|
[acc25ee] | 14 | VPATH = @srcdir@:@srcdir@/../../shared/residual |
---|
[ba46ffa6] | 15 | |
---|
| 16 | # C source names, if any, go here -- minus the .c |
---|
[6693a68] | 17 | C_PIECES = $(RESIDUAL_C_PIECES) |
---|
| 18 | C_FILES = $(C_PIECES:%=%.c) |
---|
| 19 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
[ba46ffa6] | 20 | |
---|
[acc25ee] | 21 | H_FILES = $(srcdir)/../../shared/residual/pnp.h $(srcdir)/../../shared/residual/residual.h |
---|
[ba46ffa6] | 22 | |
---|
[6693a68] | 23 | SRCS = $(C_FILES) $(H_FILES) |
---|
| 24 | OBJS = $(C_O_FILES) |
---|
[ba46ffa6] | 25 | |
---|
[6693a68] | 26 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
[ba46ffa6] | 27 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
| 28 | |
---|
[6693a68] | 29 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
| 30 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
| 31 | |
---|
| 32 | INSTALLDIRS = $(PROJECT_INCLUDE)/bsp |
---|
| 33 | |
---|
| 34 | $(INSTALLDIRS): |
---|
| 35 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
| 36 | |
---|
| 37 | RESIDUAL_C_PIECES = residual |
---|
[ba46ffa6] | 38 | |
---|
| 39 | # |
---|
| 40 | # (OPTIONAL) Add local stuff here using += |
---|
| 41 | # |
---|
| 42 | |
---|
[6693a68] | 43 | DEFINES += |
---|
[ba46ffa6] | 44 | CPPFLAGS += |
---|
[6693a68] | 45 | CFLAGS += |
---|
[ba46ffa6] | 46 | |
---|
[6693a68] | 47 | LD_PATHS += |
---|
| 48 | LD_LIBS += |
---|
| 49 | LDFLAGS += |
---|
[ba46ffa6] | 50 | |
---|
| 51 | # |
---|
| 52 | # Add your list of files to delete here. The config files |
---|
| 53 | # already know how to delete some stuff, so you may want |
---|
| 54 | # to just run 'make clean' first to see what gets missed. |
---|
| 55 | # 'make clobber' already includes 'make clean' |
---|
| 56 | # |
---|
| 57 | |
---|
| 58 | CLEAN_ADDITIONS += |
---|
| 59 | CLOBBER_ADDITIONS += |
---|
| 60 | |
---|
[6693a68] | 61 | preinstall: |
---|
| 62 | @$(mkinstalldirs) $(PROJECT_INCLUDE)/bsp |
---|
| 63 | @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/bsp |
---|
[ba46ffa6] | 64 | |
---|
[acc25ee] | 65 | all: ${ARCH} $(SRCS) preinstall $(OBJS) |
---|
[ba46ffa6] | 66 | |
---|
| 67 | # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile |
---|
[6693a68] | 68 | install: all |
---|
| 69 | |
---|
[08b5f55] | 70 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
[6693a68] | 71 | cd $(top_builddir) \ |
---|
| 72 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|