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/powerpc/ppcn_60x/wrapup |
---|
10 | |
---|
11 | INSTALL = @INSTALL@ |
---|
12 | |
---|
13 | RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ |
---|
14 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
15 | |
---|
16 | VPATH = @srcdir@ |
---|
17 | |
---|
18 | # We only build the network device driver if HAS_NETWORK was defined |
---|
19 | NETWORK_DRIVER_yes_V = network |
---|
20 | NETWORK_DRIVER = $(NETWORK_DRIVER_$(HAS_NETWORK)_V) |
---|
21 | |
---|
22 | BSP_PIECES=startup clock console timer tod \ |
---|
23 | $(NETWORK_DRIVER) nvram universe pci vectors |
---|
24 | # pieces to pick up out of libcpu/$(RTEMS_CPU) |
---|
25 | CPU_PIECES= |
---|
26 | GENERIC_PIECES= |
---|
27 | |
---|
28 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
29 | OBJS=$(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/$(piece).rel) \ |
---|
30 | $(foreach piece, $(CPU_PIECES), \ |
---|
31 | ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).rel) \ |
---|
32 | $(foreach piece, $(GENERIC_PIECES), \ |
---|
33 | ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
34 | LIB=$(ARCH)/libbsp.a |
---|
35 | |
---|
36 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
37 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
38 | |
---|
39 | # |
---|
40 | # (OPTIONAL) Add local stuff here using += |
---|
41 | # |
---|
42 | |
---|
43 | DEFINES += |
---|
44 | CPPFLAGS += |
---|
45 | CFLAGS += |
---|
46 | |
---|
47 | LD_PATHS += |
---|
48 | LD_LIBS += |
---|
49 | LDFLAGS += |
---|
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 | |
---|
61 | $(LIB): ${OBJS} |
---|
62 | $(make-library) |
---|
63 | |
---|
64 | all: ${ARCH} $(SRCS) $(LIB) |
---|
65 | $(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib |
---|
66 | |
---|
67 | $(PROJECT_ROOT)/${RTEMS_BSP}/lib/bsp_specs: ../bsp_specs |
---|
68 | $(INSTALL_DATA) $< $@ |
---|
69 | |
---|
70 | preinstall: $(PROJECT_ROOT)/${RTEMS_BSP}/lib/bsp_specs |
---|
71 | |
---|
72 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
73 | cd $(top_builddir) \ |
---|
74 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|