1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../.. |
---|
9 | subdir = librdbg/i386/pc386 |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@:@srcdir@/..:@srcdir@/../.. |
---|
15 | |
---|
16 | LIBNAME = librdbg.a |
---|
17 | LIB = ${ARCH}/${LIBNAME} |
---|
18 | |
---|
19 | # C and C++ source names, if any, go here -- minus the .c or .cc |
---|
20 | C_PIECES = rdbg servcon servbkpt servrpc excep excep_f servtgt servtsp \ |
---|
21 | servutil _servtgt rdbg_f ptrace |
---|
22 | |
---|
23 | C_FILES = $(C_PIECES:%=%.c) |
---|
24 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
25 | |
---|
26 | # Asm source names, if any, go here -- minus the .s |
---|
27 | S_PIECES = rdbg_cpu_asm |
---|
28 | S_FILES = $(S_PIECES:%=%.S) |
---|
29 | S_O_FILES = $(S_PIECES:%=${ARCH}/%.o) |
---|
30 | |
---|
31 | # Generated C source names, if any, go here -- minus the .c |
---|
32 | GEN_C_PIECES = remdeb_xdr remdeb_svc |
---|
33 | GEN_C_FILES = $(GEN_C_PIECES:%=%.c) |
---|
34 | GEN_C_O_FILES = $(GEN_C_PIECES:%=${ARCH}/%.o) |
---|
35 | |
---|
36 | # H source names, if any, go here -- minus the .h |
---|
37 | H_PIECES = remdeb |
---|
38 | H_FILES = $(H_PIECES:%=%.h) |
---|
39 | |
---|
40 | # X source names |
---|
41 | X_FILES = remdeb.x remdeb_f.x |
---|
42 | |
---|
43 | SRCS = $(C_FILES) $(S_FILES) $(GEN_C_FILES) $(H_FILES) |
---|
44 | OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES) |
---|
45 | |
---|
46 | RPCGEN = @RPCGEN@ |
---|
47 | AWK = @AWK@ |
---|
48 | |
---|
49 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
50 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
51 | |
---|
52 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
53 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
54 | |
---|
55 | INSTALLDIRS = $(PROJECT_INCLUDE)/rdbg |
---|
56 | |
---|
57 | $(INSTALLDIRS): |
---|
58 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
59 | |
---|
60 | # |
---|
61 | # Add local stuff here using += |
---|
62 | # |
---|
63 | |
---|
64 | DEFINES += |
---|
65 | CPPFLAGS += |
---|
66 | CFLAGS += |
---|
67 | |
---|
68 | # |
---|
69 | # Add your list of files to delete here. The config files |
---|
70 | # already know how to delete some stuff, so you may want |
---|
71 | # to just run 'make clean' first to see what gets missed. |
---|
72 | # 'make clobber' already includes 'make clean' |
---|
73 | # |
---|
74 | |
---|
75 | CLEAN_ADDITIONS += $(LIB) $(H_FILES) $(GEN_C_FILES) |
---|
76 | CLOBBER_ADDITIONS += |
---|
77 | |
---|
78 | FRONTEND = \"$(RTEMS_CPU)/@RTEMS_BSP@/remdeb_f.x\" |
---|
79 | |
---|
80 | all: ${ARCH} $(LIB) |
---|
81 | @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib |
---|
82 | |
---|
83 | $(LIB): $(SRCS) ${OBJS} |
---|
84 | $(make-library) |
---|
85 | |
---|
86 | remdeb.h: $(X_FILES) |
---|
87 | @rm -f $@ |
---|
88 | ( pwd=`pwd`; cd $(srcdir)/../..; \ |
---|
89 | $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \ |
---|
90 | -o $$pwd/$@ remdeb.x ) |
---|
91 | @$(INSTALL_CHANGE) -m 755 $@ $(PROJECT_INCLUDE)/rdbg |
---|
92 | |
---|
93 | remdeb_xdr.c: $(X_FILES) |
---|
94 | @rm -f $@ |
---|
95 | ( pwd=`pwd`; cd $(srcdir)/../..; \ |
---|
96 | $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \ |
---|
97 | -o $$pwd/$@ remdeb.x ) |
---|
98 | |
---|
99 | remdeb_svc.c: $(X_FILES) |
---|
100 | @rm -f $@ tmpSvc.c |
---|
101 | ( pwd=`pwd`; cd $(srcdir)/../..; \ |
---|
102 | $(RPCGEN) -s udp -DFRONTEND=$(FRONTEND) \ |
---|
103 | -o $$pwd/tmpSvc.c remdeb.x ) |
---|
104 | $(AWK) -f $(srcdir)/../../awk.svc THEPROG="remdeb.h" tmpSvc.c >$@ |
---|
105 | @rm -f tmpSvc.c |
---|
106 | |
---|
107 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
108 | cd $(top_builddir) \ |
---|
109 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|