OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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

Line No. Rev Author Line
1 30 unneback
#
2
#  $Id: Makefile.leaf,v 1.2 2001-09-27 12:02:50 chris Exp $
3
#
4
# Templates/Makefile.leaf
5
#       Template leaf node Makefile
6
#
7
 
8
# C source names, if any, go here -- minus the .c
9
C_PIECES=xxxd xxxe xxxf
10
C_FILES=$(C_PIECES:%=%.c)
11
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
12
 
13
# C++ source names, if any, go here -- minus the .cc
14
CC_PIECES=xxxa xxxb xxxc
15
CC_FILES=$(CC_PIECES:%=%.cc)
16
CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
17
 
18
H_FILES=
19
 
20
# Assembly source names, if any, go here -- minus the .S
21
S_PIECES=
22
S_FILES=$(S_PIECES:%=%.S)
23
S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
24
 
25
SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
26
OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
27
 
28
PGMS=${ARCH}/xxx-your-program-here ${ARCH}/xxx-another-one
29
 
30
# List of RTEMS managers to be included in the application goes here.
31
# Use:
32
#     MANAGERS=all
33
# to include all RTEMS managers in the application.
34
MANAGERS=io event message rate_monotonic semaphore timer, etc.
35
 
36
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
37
 
38
include $(RTEMS_CUSTOM)
39
include $(RTEMS_ROOT)/make/leaf.cfg
40
 
41
#
42
# (OPTIONAL) Add local stuff here using +=
43
#
44
 
45
DEFINES  +=
46
CPPFLAGS +=
47
CFLAGS   +=
48
 
49
#
50
# CFLAGS_DEBUG_V are used when the `make debug' target is built.
51
# To link your application with the non-optimized RTEMS routines,
52
# uncomment the following line:
53
# CFLAGS_DEBUG_V += -qrtems_debug
54
#
55
 
56
LD_PATHS  += xxx-your-EXTRA-library-paths-go-here, if any
57
LD_LIBS   += xxx-your-libraries-go-here eg: -lvx
58
LDFLAGS   +=
59
 
60
#
61
# Add your list of files to delete here.  The config files
62
#  already know how to delete some stuff, so you may want
63
#  to just run 'make clean' first to see what gets missed.
64
#  'make clobber' already includes 'make clean'
65
#
66
 
67
CLEAN_ADDITIONS += xxx-your-debris-goes-here
68
CLOBBER_ADDITIONS +=
69
 
70
all:    ${ARCH} $(SRCS) $(PGMS)
71
 
72
${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
73
        $(make-exe)
74
 
75
# Install the program(s), appending _g or _p as appropriate.
76
# for include files, just use $(INSTALL_CHANGE)
77
install:  all
78
        $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin

powered by: WebSVN 2.1.0

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