1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../../.. |
---|
9 | subdir = score/cpu/i960/rtems/score |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@ |
---|
15 | |
---|
16 | # C source names, if any, go here -- minus the .c |
---|
17 | C_PIECES = |
---|
18 | C_FILES = $(C_PIECES:%=%.c) |
---|
19 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
20 | |
---|
21 | H_PIECES = cpu.h i960.h i960types.h |
---|
22 | H_FILES = $(H_PIECES:%=$(srcdir)/%) |
---|
23 | |
---|
24 | # Assembly source names, if any, go here -- minus the .S |
---|
25 | S_PIECES = |
---|
26 | S_FILES = $(S_PIECES:%=%.S) |
---|
27 | S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o) |
---|
28 | |
---|
29 | SRCS = $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
30 | OBJS = $(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
31 | |
---|
32 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
33 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
34 | |
---|
35 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
36 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
37 | |
---|
38 | INSTALLDIRS = $(PROJECT_INCLUDE)/rtems/score |
---|
39 | |
---|
40 | $(INSTALLDIRS): |
---|
41 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
42 | |
---|
43 | # |
---|
44 | # (OPTIONAL) Add local stuff here using += |
---|
45 | # |
---|
46 | |
---|
47 | DEFINES += |
---|
48 | CPPFLAGS += |
---|
49 | CFLAGS += |
---|
50 | |
---|
51 | LD_PATHS += |
---|
52 | LD_LIBS += |
---|
53 | LDFLAGS += |
---|
54 | |
---|
55 | # |
---|
56 | # Add your list of files to delete here. The config files |
---|
57 | # already know how to delete some stuff, so you may want |
---|
58 | # to just run 'make clean' first to see what gets missed. |
---|
59 | # 'make clobber' already includes 'make clean' |
---|
60 | # |
---|
61 | |
---|
62 | CLEAN_ADDITIONS += |
---|
63 | CLOBBER_ADDITIONS += $(BUILT_SOURCES) |
---|
64 | |
---|
65 | # Install the program(s), appending _g or _p as appropriate. |
---|
66 | # for include files, just use $(INSTALL_CHANGE) |
---|
67 | all: preinstall |
---|
68 | |
---|
69 | preinstall: $(INSTALLDIRS) $(H_FILES) |
---|
70 | @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/rtems/score |
---|
71 | |
---|
72 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
73 | cd $(top_builddir) \ |
---|
74 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|