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 | LIB=${ARCH}/libmonitor-tmp.a |
---|
12 | |
---|
13 | # C source names, if any, go here -- minus the .c |
---|
14 | # We only build multiprocessing related files if HAS_MP was defined |
---|
15 | MP_PIECES_yes_V = mon-mpci |
---|
16 | MP_PIECES = $(MP_PIECES_$(HAS_MP)_V) |
---|
17 | |
---|
18 | C_PIECES=mon-command mon-symbols mon-prmisc mon-monitor mon-object mon-server \ |
---|
19 | mon-task mon-queue mon-driver mon-dname mon-itask \ |
---|
20 | mon-extension mon-manager mon-config $(MP_PIECES) |
---|
21 | C_FILES=$(C_PIECES:%=%.c) |
---|
22 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
23 | |
---|
24 | H_FILES= |
---|
25 | INSTALLED_H_FILES=$(srcdir)/monitor.h $(srcdir)/symbols.h |
---|
26 | |
---|
27 | SRCS=README $(C_FILES) $(H_FILES) $(INSTALLED_H_FILES) |
---|
28 | OBJS=$(C_O_FILES) |
---|
29 | |
---|
30 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
31 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
32 | |
---|
33 | # |
---|
34 | # (OPTIONAL) Add local stuff here using += |
---|
35 | # |
---|
36 | |
---|
37 | DEFINES += |
---|
38 | CPPFLAGS += -I$(srcdir) |
---|
39 | CFLAGS += |
---|
40 | |
---|
41 | LD_PATHS += |
---|
42 | LD_LIBS += |
---|
43 | LDFLAGS += |
---|
44 | |
---|
45 | # |
---|
46 | # Add your list of files to delete here. The config files |
---|
47 | # already know how to delete some stuff, so you may want |
---|
48 | # to just run 'make clean' first to see what gets missed. |
---|
49 | # 'make clobber' already includes 'make clean' |
---|
50 | # |
---|
51 | |
---|
52 | .PHONY: preinstall |
---|
53 | |
---|
54 | CLEAN_ADDITIONS += |
---|
55 | CLOBBER_ADDITIONS += |
---|
56 | |
---|
57 | ${LIB}: ${SRCS} ${OBJS} |
---|
58 | $(make-library) |
---|
59 | |
---|
60 | all: preinstall ${ARCH} $(SRCS) $(LIB) |
---|
61 | |
---|
62 | preinstall: $(INSTALLED_H_FILES) |
---|
63 | $(INSTALL) -m 444 ${INSTALLED_H_FILES} $(PROJECT_INCLUDE)/rtems |
---|