source: rtems/bsps/powerpc/beatnik/net/porting/Makefile.template @ 031df391

5
Last change on this file since 031df391 was 031df391, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 23, 2018 at 7:53:31 AM

bsps: Move legacy network drivers to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1#
2#  Makefile.lib,v 1.5 2000/06/12 15:00:14 joel Exp
3#
4# Copyright: Till Straumann <strauman@slac.stanford.edu>, 2005;
5# License:   see LICENSE file.
6#
7# Templates/Makefile.lib
8#       Template library Makefile
9#
10
11LIBNAME=libif_XXX.a        # XXX- your library names goes here
12LIB=${ARCH}/${LIBNAME}
13
14# C and C++ source names, if any, go here -- minus the .c or .cc
15C_PIECES=if_XXX if_XXX_rtems
16C_FILES=$(C_PIECES:%=%.c)
17C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
18
19CC_PIECES=
20CC_FILES=$(CC_PIECES:%=%.cc)
21CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
22
23H_FILES=
24
25# Assembly source names, if any, go here -- minus the .S
26S_PIECES=
27S_FILES=$(S_PIECES:%=%.S)
28S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
29
30SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
31OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
32
33include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
34
35include $(RTEMS_CUSTOM)
36include $(RTEMS_ROOT)/make/lib.cfg
37
38#
39# Add local stuff here using +=
40#
41
42#DEFINES  += -DHAVE_LIBBSPEXT -DDEBUG_MODULAR
43CPPFLAGS += -I. -Ilibchip -Iporting
44# bsdnet newproc generated daemon is non-FP;
45# prevent optimizer from generating FP instructions
46CFLAGS   += -Wno-unused-variable -msoft-float
47
48#
49# Add your list of files to delete here.  The config files
50#  already know how to delete some stuff, so you may want
51#  to just run 'make clean' first to see what gets missed.
52#  'make clobber' already includes 'make clean'
53#
54
55CLEAN_ADDITIONS +=
56CLOBBER_ADDITIONS +=
57
58all:    ${ARCH} $(SRCS) $(LIB)
59
60$(LIB): ${OBJS}
61        $(make-library)
62
63ifndef RTEMS_SITE_INSTALLDIR
64RTEMS_SITE_INSTALLDIR = $(PROJECT_RELEASE)
65endif
66
67${RTEMS_SITE_INSTALLDIR}/include \
68${RTEMS_SITE_INSTALLDIR}/lib \
69${RTEMS_SITE_INSTALLDIR}/bin \
70${RTEMS_SITE_INSTALLDIR}/$(RTEMS_BSP)/include \
71${RTEMS_SITE_INSTALLDIR}/$(RTEMS_BSP)/lib \
72${RTEMS_SITE_INSTALLDIR}/$(RTEMS_BSP)/bin :
73        test -d $@ || mkdir -p $@
74
75# Install the library, appending _g or _p as appropriate.
76# for include files, just use $(INSTALL_CHANGE)
77#
78# NOTES:
79#  - BSP specific libraries, headers etc. should be installed to
80#          $RTEMS_SITE_INSTALLDIR)/$(RTEMS_BSP)/lib
81#
82
83install:  all $(RTEMS_SITE_INSTALLDIR)/lib
84        $(INSTALL_VARIANT) -m 644 ${LIB} ${RTEMS_SITE_INSTALLDIR}/lib
Note: See TracBrowser for help on using the repository browser.