source: rtems/c/src/exec/score/cpu/mips64orion/Makefile.in @ 4d11a92f

4.104.114.84.95
Last change on this file since 4d11a92f was 4d11a92f, checked in by Joel Sherrill <joel.sherrill@…>, on 08/05/98 at 15:11:33

Redid Makefiles to properly do a preinstall. There was remnants of the
old way of setting th cpu family and model string names.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7VPATH = @srcdir@
8RTEMS_ROOT = @top_srcdir@
9PROJECT_ROOT = @PROJECT_ROOT@
10
11RELS=$(ARCH)/rtems-cpu.rel
12
13# C source names, if any, go here -- minus the .c
14#  Normally cpu_asm and rtems are assembly files
15C_PIECES=cpu rtems
16C_FILES=$(C_PIECES:%=%.c)
17C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
18
19H_FILES=$(srcdir)/cpu.h $(srcdir)/mips64orion.h $(srcdir)/mipstypes.h \
20        $(srcdir)/idtcpu.h $(srcdir)/iregdef.h $(srcdir)/idtmon.h
21
22# H_FILES that get installed externally
23EXTERNAL_H_FILES = $(srcdir)/asm.h
24
25# Assembly source names, if any, go here -- minus the .s
26#  Normally cpu_asm and rtems are assembly files
27S_PIECES=cpu_asm
28S_FILES=$(S_PIECES:%=%.S)
29S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
30
31SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) $(EXTERNAL_H_FILES)
32OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
33
34include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
35include $(RTEMS_ROOT)/make/leaf.cfg
36
37#
38# (OPTIONAL) Add local stuff here using +=
39#
40
41DEFINES  +=
42CPPFLAGS +=
43CFLAGS   += $(CFLAGS_OS_V)
44
45LD_PATHS  +=
46LD_LIBS   +=
47LDFLAGS   +=
48
49#
50# Add your list of files to delete here.  The config files
51#  already know how to delete some stuff, so you may want
52#  to just run 'make clean' first to see what gets missed.
53#  'make clobber' already includes 'make clean'
54#
55
56CLEAN_ADDITIONS +=
57CLOBBER_ADDITIONS +=
58
59all:    ${ARCH} $(SRCS) preinstall $(OBJS) $(RELS)
60        $(INSTALL_VARIANT) -m 444 $(RELS) ${PROJECT_RELEASE}/lib
61
62$(ARCH)/rtems-cpu.rel: $(OBJS)
63        $(make-rel)
64
65# Install the program(s), appending _g or _p as appropriate.
66# for include files, just use $(INSTALL)
67
68preinstall: $(ARCH) $(PROJECT_INCLUDE)/rtems/score/targopts.h \
69            ${PROJECT_RELEASE}/lib/bsp_specs
70        $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
71# we will share the basic cpu file
72        $(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE)
73
74$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
75        $(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
76
77# $(ARCH)/targopts.h-tmp rule is in leaf.cfg
78
79${PROJECT_RELEASE}/lib/bsp_specs: $(ARCH)/bsp_specs.tmp
80        $(INSTALL) -m 444 $(ARCH)/bsp_specs.tmp $@
81
82# $(ARCH)/bsp_specs.tmp rule is in leaf.cfg
Note: See TracBrowser for help on using the repository browser.