source: rtems/c/src/exec/score/cpu/unix/Makefile.in @ e0de6ef

4.104.114.84.95
Last change on this file since e0de6ef was 254b4450, checked in by Joel Sherrill <joel.sherrill@…>, on 04/01/97 at 23:07:52

This set of changes is the build of what was required to convert to
GNU autoconf. This is the first large step in allowing an RTEMS
user to perform a one-tree build (per crossgcc FAQ) including RTEMS
in the build process. With this change RTEMS is configured in
built in the same style as the GNU tools, yet retains the basic
structure of its traditional Makefiles (ala Tony Bennett).
Jiri Gaisler (jgais@…) deserves (and received)
a big thank you for doing this.

There are still issues to be resolved but as of this commit, all target
which can be built on a linux host have been using a modified version
of the source Jiri submitted. This source was merged and most targets
built in the tree before this commit.

There are some issues which remain to be resolved but they are primarily
related to host OS dependencies, script issues, the use of gawk
for hack_specs, and the dependence on gcc snapshots. These will
be resolved.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8VPATH=@srcdir@
9
10RELS=$(ARCH)/rtems-cpu.rel
11
12# C source names, if any, go here -- minus the .c
13C_PIECES=cpu
14C_FILES=$(C_PIECES:%=%.c)
15C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
16
17H_FILES=$(srcdir)/cpu.h $(srcdir)/unixtypes.h
18
19# Assembly source names, if any, go here -- minus the .S
20S_PIECES=
21S_FILES=$(S_PIECES:%=%.S)
22S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
23
24SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
25OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
26
27include $(RTEMS_CUSTOM)
28include $(PROJECT_ROOT)/make/leaf.cfg
29
30#
31# (OPTIONAL) Add local stuff here using +=
32#
33
34DEFINES  +=
35CPPFLAGS +=
36CFLAGS   += $(CFLAGS_OS_V)
37
38LD_PATHS  +=
39LD_LIBS   +=
40LDFLAGS   +=
41
42#
43# Add your list of files to delete here.  The config files
44#  already know how to delete some stuff, so you may want
45#  to just run 'make clean' first to see what gets missed.
46#  'make clobber' already includes 'make clean'
47#
48
49CLEAN_ADDITIONS +=
50CLOBBER_ADDITIONS +=
51
52$(ARCH)/unixsize.h: $(ARCH) cpu.h $(PROJECT_RELEASE)/bin/gensize
53        $(RM) $@
54        $(PROJECT_RELEASE)/bin/gensize > $@
55        $(CHMOD) -w $@
56
57$(ARCH)/rtems-cpu.rel: $(OBJS)
58        $(make-rel)
59
60all:  ${ARCH} $(SRCS) $(ARCH)/unixsize.h preinstall $(RELS)
61
62# Install the program(s), appending _g or _p as appropriate.
63# for include files, just use $(INSTALL)
64install:  all
65
66# Real ports using the gnu tools will need to have bsp_specs!!!
67#            ${PROJECT_RELEASE}/lib/bsp_specs
68preinstall: ${PROJECT_RELEASE}/include/rtems/score/unix.h $(ARCH)/unixsize.h \
69            ${PROJECT_RELEASE}/include/rtems/score/targopts.h
70        $(INSTALL) -m 444 ${H_FILES} ${PROJECT_RELEASE}/include/rtems/score
71        $(INSTALL) -m 444 ${ARCH}/unixsize.h ${PROJECT_RELEASE}/include/rtems/score
72
73${PROJECT_RELEASE}/include/rtems/score/unix.h: unix.h
74         $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
75                -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
76                -e 's?REPLACE_THIS_WITH_THE_CPU_FAMILY?$(RTEMS_CPU_FAMILY)?' \
77                -e 's?REPLACE_THIS_WITH_THE_UNIX_FLAVOR?$(RTEMS_UNIX_FLAVOR)?' \
78      <$(srcdir)/unix.h >$(ARCH)/unix.h.tmp
79        $(INSTALL) -m 444 $(ARCH)/unix.h.tmp $@
80
81${PROJECT_RELEASE}/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# Real ports using the gnu tools will need to have bsp_specs!!!
87#${PROJECT_RELEASE}/lib/bsp_specs: $(ARCH)/bsp_specs.tmp
88#       $(INSTALL) -m 444 $(ARCH)/bsp_specs.tmp $@
89#
90# $(ARCH)/bsp_specs.tmp rule is in leaf.cfg
Note: See TracBrowser for help on using the repository browser.