source: rtems/c/src/exec/score/cpu/i386/Makefile.in @ cb5bfe4

4.104.114.84.95
Last change on this file since cb5bfe4 was cb5bfe4, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/98 at 19:41:09

Removed CONFIG_DIR and PROJECT_HOME directories.

  • Property mode set to 100644
File size: 2.3 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)/i386types.h
21
22# H_FILES that get installed externally
23# i386.h is handled specially
24EXTERNAL_H_FILES = $(srcdir)/asm.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 $(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
59$(ARCH)/rtems-cpu.rel: $(OBJS)
60        $(make-rel)
61
62all:    ${ARCH} $(SRCS) preinstall $(OBJS) $(RELS)
63
64# Install the program(s), appending _g or _p as appropriate.
65# for include files, just use $(INSTALL)
66install:  all
67
68preinstall: $(PROJECT_INCLUDE)/rtems/score/i386.h \
69            $(PROJECT_INCLUDE)/rtems/score/targopts.h \
70            ${PROJECT_RELEASE}/lib/bsp_specs
71        $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
72# we will share the basic cpu file
73        $(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE)
74
75$(PROJECT_INCLUDE)/rtems/score/i386.h: i386.h
76        $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
77                -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
78      < $< >$(ARCH)/i386.h-tmp
79        $(INSTALL) -m 444 $(ARCH)/i386.h-tmp $@
80
81$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
82        $(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
83
84# $(ARCH)/targopts.h-tmp rule is in leaf.cfg
85
86${PROJECT_RELEASE}/lib/bsp_specs: $(ARCH)/bsp_specs.tmp
87        $(INSTALL) -m 444 $(ARCH)/bsp_specs.tmp $@
88
89# $(ARCH)/bsp_specs.tmp rule is in leaf.cfg
Note: See TracBrowser for help on using the repository browser.