1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../../.. |
---|
9 | subdir = c/src/lib/libmisc/monitor |
---|
10 | |
---|
11 | INSTALL = @INSTALL@ |
---|
12 | |
---|
13 | RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ |
---|
14 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
15 | |
---|
16 | VPATH = @srcdir@ |
---|
17 | |
---|
18 | LIB=${ARCH}/libmonitor-tmp.a |
---|
19 | |
---|
20 | # C source names, if any, go here -- minus the .c |
---|
21 | # We only build multiprocessing related files if HAS_MP was defined |
---|
22 | MP_PIECES_yes_V = mon-mpci |
---|
23 | MP_PIECES = $(MP_PIECES_$(HAS_MP)_V) |
---|
24 | |
---|
25 | C_PIECES=mon-command mon-symbols mon-prmisc mon-monitor mon-object mon-server \ |
---|
26 | mon-task mon-queue mon-driver mon-dname mon-itask \ |
---|
27 | mon-extension mon-manager mon-config $(MP_PIECES) |
---|
28 | C_FILES=$(C_PIECES:%=%.c) |
---|
29 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
30 | |
---|
31 | H_FILES= |
---|
32 | INSTALLED_H_FILES=$(srcdir)/monitor.h $(srcdir)/symbols.h |
---|
33 | |
---|
34 | SRCS=README $(C_FILES) $(H_FILES) $(INSTALLED_H_FILES) |
---|
35 | OBJS=$(C_O_FILES) |
---|
36 | |
---|
37 | include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg |
---|
38 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
39 | |
---|
40 | # |
---|
41 | # (OPTIONAL) Add local stuff here using += |
---|
42 | # |
---|
43 | |
---|
44 | DEFINES += |
---|
45 | CPPFLAGS += -I$(srcdir) |
---|
46 | CFLAGS += |
---|
47 | |
---|
48 | LD_PATHS += |
---|
49 | LD_LIBS += |
---|
50 | LDFLAGS += |
---|
51 | |
---|
52 | # |
---|
53 | # Add your list of files to delete here. The config files |
---|
54 | # already know how to delete some stuff, so you may want |
---|
55 | # to just run 'make clean' first to see what gets missed. |
---|
56 | # 'make clobber' already includes 'make clean' |
---|
57 | # |
---|
58 | |
---|
59 | .PHONY: preinstall |
---|
60 | |
---|
61 | CLEAN_ADDITIONS += |
---|
62 | CLOBBER_ADDITIONS += |
---|
63 | |
---|
64 | ${LIB}: ${SRCS} ${OBJS} |
---|
65 | $(make-library) |
---|
66 | |
---|
67 | all: preinstall ${ARCH} $(SRCS) $(LIB) |
---|
68 | |
---|
69 | preinstall: $(INSTALLED_H_FILES) |
---|
70 | $(INSTALL_CHANGE) -m 444 ${INSTALLED_H_FILES} $(PROJECT_INCLUDE)/rtems |
---|
71 | |
---|
72 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
73 | cd $(top_builddir) \ |
---|
74 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|