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 | RTEMS_GAS_CODE16 = @RTEMS_GAS_CODE16@ |
---|
11 | |
---|
12 | PGMS=${ARCH}/start.o |
---|
13 | |
---|
14 | # C source names, if any, go here -- minus the .c |
---|
15 | C_PIECES= |
---|
16 | C_FILES=$(C_PIECES:%=%.c) |
---|
17 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
18 | |
---|
19 | H_FILES= |
---|
20 | |
---|
21 | # Assembly source names, if any, go here -- minus the .s |
---|
22 | S_PIECES=start |
---|
23 | S_FILES=$(S_PIECES:%=%.s) |
---|
24 | S_O_FILES=$(S_FILES:%.s=${ARCH}/%.o) |
---|
25 | |
---|
26 | SRCS=$(C_FILES) $(H_FILES) $(S_FILES) |
---|
27 | OBJS=$(C_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 | ifeq ($(RTEMS_GAS_CODE16),yes) |
---|
37 | DEFINES += -DNEW_GAS |
---|
38 | endif |
---|
39 | |
---|
40 | CPPFLAGS += |
---|
41 | CFLAGS += |
---|
42 | |
---|
43 | LD_PATHS += |
---|
44 | LD_LIBS += |
---|
45 | LDFLAGS += |
---|
46 | |
---|
47 | # |
---|
48 | # Add your list of files to delete here. The config files |
---|
49 | # already know how to delete some stuff, so you may want |
---|
50 | # to just run 'make clean' first to see what gets missed. |
---|
51 | # 'make clobber' already includes 'make clean' |
---|
52 | # |
---|
53 | |
---|
54 | CLEAN_ADDITIONS += |
---|
55 | CLOBBER_ADDITIONS += |
---|
56 | |
---|
57 | all: ${ARCH} $(SRCS) $(OBJS) $(PGM) |
---|
58 | $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/lib |
---|
59 | |
---|
60 | # Install the program(s), appending _g or _p as appropriate. |
---|
61 | # for include files, just use $(INSTALL) |
---|