1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | VPATH = @srcdir@ |
---|
8 | RTEMS_ROOT = @top_srcdir@ |
---|
9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
10 | |
---|
11 | # C source names, if any, go here -- minus the .c |
---|
12 | C_PIECES= |
---|
13 | C_FILES=$(C_PIECES:%=%.c) |
---|
14 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
15 | |
---|
16 | H_PIECES=cpu.h i386.h i386types.h |
---|
17 | H_FILES=$(H_PIECES:%=$(srcdir)/%) |
---|
18 | |
---|
19 | # Assembly source names, if any, go here -- minus the .S |
---|
20 | S_PIECES= |
---|
21 | S_FILES=$(S_PIECES:%=%.S) |
---|
22 | S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o) |
---|
23 | |
---|
24 | SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
25 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
26 | |
---|
27 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
28 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
29 | |
---|
30 | # |
---|
31 | # (OPTIONAL) Add local stuff here using += |
---|
32 | # |
---|
33 | |
---|
34 | DEFINES += |
---|
35 | CPPFLAGS += |
---|
36 | CFLAGS += |
---|
37 | |
---|
38 | LD_PATHS += |
---|
39 | LD_LIBS += |
---|
40 | LDFLAGS += |
---|
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 | |
---|
49 | CLEAN_ADDITIONS += |
---|
50 | CLOBBER_ADDITIONS += $(BUILT_SOURCES) |
---|
51 | |
---|
52 | # Install the program(s), appending _g or _p as appropriate. |
---|
53 | # for include files, just use $(INSTALL) |
---|
54 | all: install-headers |
---|
55 | |
---|
56 | install-headers: ${H_FILES} |
---|
57 | $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score |
---|
58 | |
---|
59 | preinstall: install-headers |
---|