OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [make/] [Templates/] [Makefile.lib] - Blame information for rev 778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#
2
#  $Id: Makefile.lib,v 1.2 2001-09-27 12:02:50 chris Exp $
3
#
4
# Templates/Makefile.lib
5
#       Template library Makefile
6
#
7
 
8
LIBNAME=libfoo.a        # xxx- your library names goes here
9
LIB=${ARCH}/${LIBNAME}
10
 
11
# C and C++ source names, if any, go here -- minus the .c or .cc
12
C_PIECES=xxxd xxxe xxxf
13
C_FILES=$(C_PIECES:%=%.c)
14
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
15
 
16
CC_PIECES=xxxa xxxb xxxc
17
CC_FILES=$(CC_PIECES:%=%.cc)
18
CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
19
 
20
H_FILES=
21
 
22
# Assembly source names, if any, go here -- minus the .S
23
S_PIECES=
24
S_FILES=$(S_PIECES:%=%.S)
25
S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
26
 
27
SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
28
OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
29
 
30
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
31
 
32
include $(RTEMS_CUSTOM)
33
include $(RTEMS_ROOT)/make/lib.cfg
34
 
35
#
36
# Add local stuff here using +=
37
#
38
 
39
DEFINES  +=
40
CPPFLAGS +=
41
CFLAGS   +=
42
 
43
#
44
# Add your list of files to delete here.  The config files
45
#  already know how to delete some stuff, so you may want
46
#  to just run 'make clean' first to see what gets missed.
47
#  'make clobber' already includes 'make clean'
48
#
49
 
50
CLEAN_ADDITIONS += xxx-your-debris-goes-here
51
CLOBBER_ADDITIONS +=
52
 
53
all:    ${ARCH} $(SRCS) $(LIB)
54
 
55
$(LIB): ${OBJS}
56
        $(make-library)
57
 
58
# Install the library, appending _g or _p as appropriate.
59
# for include files, just use $(INSTALL_CHANGE)
60
install:  all
61
        $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.