source: rtems/c/src/exec/score/cpu/m68k/Makefile.in @ 674c900

4.104.114.84.95
Last change on this file since 674c900 was 674c900, checked in by Joel Sherrill <joel.sherrill@…>, on 12/10/97 at 16:58:00

Modified a lot of files to take a first cut at supporting building from
any directory in the build tree. The only variable which must be set
before the command "gmake" is invoked is RTEMS_BSP (e.g. RTEMS_BSP=erc32).

  • Property mode set to 100644
File size: 1.9 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8VPATH = @srcdir@
9RTEMS_ROOT = @RTEMS_ROOT@
10PROJECT_ROOT = @PROJECT_ROOT@
11RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
12
13RELS=$(ARCH)/rtems-cpu.rel
14
15# C source names, if any, go here -- minus the .c
16C_PIECES=cpu
17C_FILES=$(C_PIECES:%=%.c)
18C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
19
20H_FILES=$(srcdir)/cpu.h $(srcdir)/m68k.h $(srcdir)/m68ktypes.h
21
22# H_FILES that get installed externally
23EXTERNAL_H_FILES = $(srcdir)/asm.h $(srcdir)/m68302.h $(srcdir)/m68360.h \
24        $(srcdir)/qsm.h $(srcdir)/sim.h
25
26# Assembly source names, if any, go here -- minus the .s
27S_PIECES=cpu_asm rtems
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_CUSTOM)
35include $(PROJECT_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
59$(ARCH)/rtems-cpu.rel: $(OBJS)
60        $(make-rel)
61
62all:    ${ARCH} $(SRCS) preinstall $(OBJS) $(RELS)
63
64preinstall: $(PROJECT_INCLUDE)/rtems/score/targopts.h \
65            ${PROJECT_RELEASE}/lib/bsp_specs
66        $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
67# we will share the basic cpu file
68        $(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE)
69
70$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
71        $(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
72
73# $(ARCH)/targopts.h-tmp rule is in leaf.cfg
74
75${PROJECT_RELEASE}/lib/bsp_specs: $(ARCH)/bsp_specs.tmp
76        $(INSTALL) -m 444 $(ARCH)/bsp_specs.tmp $@
77
78# $(ARCH)/bsp_specs.tmp rule is in leaf.cfg
Note: See TracBrowser for help on using the repository browser.