4.104.114.84.95
Rev | Line | |
---|
[7150f00f] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[674c900] | 7 | VPATH = @srcdir@ |
---|
[5c3511e] | 8 | RTEMS_ROOT = @top_srcdir@ |
---|
[674c900] | 9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
[7150f00f] | 10 | |
---|
[8548fe0] | 11 | INSTALL = @INSTALL@ |
---|
| 12 | |
---|
[d9d75fc] | 13 | # We only build the Network library if HAS_NETWORKING was defined |
---|
[c0438add] | 14 | NETWORK_yes_V = dec21140 ne2000 wd8003 |
---|
[d9d75fc] | 15 | NETWORK = $(NETWORK_$(HAS_NETWORKING)_V) |
---|
[2d7d605] | 16 | |
---|
[0ebbf66] | 17 | BSP_PIECES=startup clock console timer $(NETWORK) |
---|
[7150f00f] | 18 | GENERIC_PIECES= |
---|
| 19 | |
---|
| 20 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
| 21 | OBJS=$(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/$(piece).rel) \ |
---|
| 22 | $(foreach piece, $(GENERIC_PIECES), ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
| 23 | LIB=$(ARCH)/libbsp.a |
---|
| 24 | |
---|
[5c3511e] | 25 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
[cb5bfe4] | 26 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
[7150f00f] | 27 | |
---|
| 28 | # |
---|
| 29 | # (OPTIONAL) Add local stuff here using += |
---|
| 30 | # |
---|
| 31 | |
---|
| 32 | DEFINES += |
---|
| 33 | CPPFLAGS += |
---|
| 34 | CFLAGS += |
---|
| 35 | |
---|
| 36 | LD_PATHS += |
---|
| 37 | LD_LIBS += |
---|
| 38 | LDFLAGS += |
---|
| 39 | |
---|
| 40 | # |
---|
| 41 | # Add your list of files to delete here. The config files |
---|
| 42 | # already know how to delete some stuff, so you may want |
---|
| 43 | # to just run 'make clean' first to see what gets missed. |
---|
| 44 | # 'make clobber' already includes 'make clean' |
---|
| 45 | # |
---|
| 46 | |
---|
| 47 | CLEAN_ADDITIONS += |
---|
| 48 | CLOBBER_ADDITIONS += |
---|
| 49 | |
---|
| 50 | $(LIB): ${OBJS} |
---|
| 51 | $(make-library) |
---|
| 52 | |
---|
| 53 | all: ${ARCH} $(SRCS) $(LIB) |
---|
| 54 | $(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib |
---|
[96d56b3] | 55 | # we create here a directory specific to the PC386 BSP to store the BootImage |
---|
| 56 | # files so they can be easily found |
---|
| 57 | mkdir -p ${PROJECT_RELEASE}/BootImgs |
---|
[dbaf51a] | 58 | |
---|
| 59 | |
---|
| 60 | |
---|
[2d7d605] | 61 | |
---|
Note: See
TracBrowser
for help on using the repository browser.