1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../.. |
---|
9 | subdir = libbsp/hppa1.1/simhppa/wrapup |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@ |
---|
15 | |
---|
16 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
17 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
18 | |
---|
19 | INSTALL = @INSTALL@ |
---|
20 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
21 | |
---|
22 | BSP_PIECES = startup tty |
---|
23 | # pieces to pick up out of libcpu/hppa |
---|
24 | CPU_PIECES = clock milli timer |
---|
25 | GENERIC_PIECES = |
---|
26 | |
---|
27 | GENERIC_MP_REL_PIECES_yes_V = shmdr |
---|
28 | GENERIC_MP_REL_PIECES_no_V = |
---|
29 | GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V) |
---|
30 | |
---|
31 | BSP_MP_O_PIECES_yes_V = shmsupp |
---|
32 | BSP_MP_O_PIECES_no_V = |
---|
33 | BSP_PIECES += $(BSP_MP_O_PIECES_$(HAS_MP)_V) |
---|
34 | |
---|
35 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
36 | OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \ |
---|
37 | $(foreach piece, $(CPU_PIECES), \ |
---|
38 | ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).rel) $(foreach \ |
---|
39 | piece, $(GENERIC_PIECES), ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
40 | LIB = $(ARCH)/libbsp.a |
---|
41 | |
---|
42 | # |
---|
43 | # (OPTIONAL) Add local stuff here using += |
---|
44 | # |
---|
45 | |
---|
46 | DEFINES += |
---|
47 | CPPFLAGS += |
---|
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 += |
---|
62 | CLOBBER_ADDITIONS += |
---|
63 | |
---|
64 | $(LIB): ${OBJS} |
---|
65 | $(make-library) |
---|
66 | |
---|
67 | all: ${ARCH} $(SRCS) $(LIB) |
---|
68 | $(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib |
---|
69 | |
---|
70 | $(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs: ../bsp_specs |
---|
71 | $(INSTALL_DATA) $< $@ |
---|
72 | |
---|
73 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
74 | cd $(top_builddir) \ |
---|
75 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|