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

4.104.114.84.95
Last change on this file since a110b68 was a110b68, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 17:55:49

Part of automake VI patch from Ralf Corsepius <corsepiu@…>:

2) rtems-rc-19990131-1.diff

Rework of compilers/*.cfg files (esp. gcc-target-default.cfg) to adapt
the flags/makefile variables to automake and make standards (cf.
make.info - implicit rules/variables).

This patch is rather risky and may probably break things, but is an
essential step towards automake.

FWIW: It also reverts the i386-ASMFLAGS/ASFLAGS-patch, which was wrong,
as I had to experience ;-.

  • Property mode set to 100644
File size: 1.9 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
14C_PIECES=cpu
15C_FILES=$(C_PIECES:%=%.c)
16C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
17
18H_FILES=$(srcdir)/cpu.h $(srcdir)/unix.h $(srcdir)/unixtypes.h
19
20# Assembly source names, if any, go here -- minus the .S
21S_PIECES=
22S_FILES=$(S_PIECES:%=%.S)
23S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
24
25SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
26OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
27
28include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
29include $(RTEMS_ROOT)/make/leaf.cfg
30
31#
32# (OPTIONAL) Add local stuff here using +=
33#
34
35DEFINES  +=
36CPPFLAGS +=
37CFLAGS   += $(CFLAGS_OS_V) -DCPU_SYNC_IO $(LIBC_DEFINES)
38
39LD_PATHS  +=
40LD_LIBS   +=
41LDFLAGS   +=
42
43#
44# Add your list of files to delete here.  The config files
45#  already know how to delete some stuff, so you may want
46#  to just run 'make clean' first to see what gets missed.
47#  'make clobber' already includes 'make clean'
48#
49
50CLEAN_ADDITIONS +=
51CLOBBER_ADDITIONS +=
52
53$(ARCH)/unixsize.h: $(ARCH) cpu.h $(GENSIZE)
54        $(RM) $@
55        $(GENSIZE) > $@
56        $(CHMOD) -w $@
57
58$(ARCH)/rtems-cpu.rel: $(OBJS)
59        $(make-rel)
60
61all:  ${ARCH} $(SRCS) $(ARCH)/unixsize.h preinstall $(RELS)
62
63# Install the program(s), appending _g or _p as appropriate.
64# for include files, just use $(INSTALL)
65install:  all
66
67# Real ports using the gnu tools will need to have bsp_specs!!!
68#            ${PROJECT_RELEASE}/lib/bsp_specs
69preinstall: $(ARCH) $(ARCH)/unixsize.h \
70            $(PROJECT_RELEASE)/lib/bsp_specs
71        $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
72        $(INSTALL) -m 444 ${ARCH}/unixsize.h $(PROJECT_INCLUDE)/rtems/score
73
74# Real ports using the gnu tools will need to have bsp_specs!!!
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.