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 | BUILT_SOURCES = unixsize.h |
---|
12 | |
---|
13 | # C source names, if any, go here -- minus the .c |
---|
14 | C_PIECES= |
---|
15 | C_FILES=$(C_PIECES:%=%.c) |
---|
16 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
17 | |
---|
18 | H_PIECES=cpu.h unixtypes.h unix.h |
---|
19 | H_FILES=$(H_PIECES:%=$(srcdir)/%) unixsize.h |
---|
20 | |
---|
21 | # Assembly source names, if any, go here -- minus the .S |
---|
22 | S_PIECES= |
---|
23 | S_FILES=$(S_PIECES:%=%.S) |
---|
24 | S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o) |
---|
25 | |
---|
26 | SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
27 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
28 | |
---|
29 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
30 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
31 | |
---|
32 | # |
---|
33 | # (OPTIONAL) Add local stuff here using += |
---|
34 | # |
---|
35 | |
---|
36 | DEFINES += |
---|
37 | CPPFLAGS += |
---|
38 | CFLAGS += |
---|
39 | |
---|
40 | LD_PATHS += |
---|
41 | LD_LIBS += |
---|
42 | LDFLAGS += |
---|
43 | |
---|
44 | unixsize.h: $(GENSIZE) cpu.h |
---|
45 | $(RM) $@ |
---|
46 | $(GENSIZE) > $@ |
---|
47 | $(CHMOD) -w $@ |
---|
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 | |
---|
56 | CLEAN_ADDITIONS += |
---|
57 | CLOBBER_ADDITIONS += $(BUILT_SOURCES) |
---|
58 | |
---|
59 | # Install the program(s), appending _g or _p as appropriate. |
---|
60 | # for include files, just use $(INSTALL) |
---|
61 | all: install-headers |
---|
62 | |
---|
63 | install-headers: ${H_FILES} |
---|
64 | $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score |
---|
65 | |
---|
66 | preinstall: install-headers |
---|