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