1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../../.. |
---|
9 | subdir = c/src/lib/libnetworking/rtems |
---|
10 | |
---|
11 | INSTALL = @INSTALL@ |
---|
12 | |
---|
13 | RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ |
---|
14 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
15 | |
---|
16 | VPATH = @srcdir@ |
---|
17 | |
---|
18 | LIBNAME=lib.a |
---|
19 | LIB=${ARCH}/${LIBNAME} |
---|
20 | |
---|
21 | # C and C++ source names, if any, go here -- minus the .c or .cc |
---|
22 | C_PIECES=sghostname issetugid \ |
---|
23 | rtems_glue rtems_syscall rtems_bootp \ |
---|
24 | rtems_showmbuf rtems_showroute \ |
---|
25 | rtems_showifstat rtems_showipstat rtems_showicmpstat \ |
---|
26 | rtems_showtcpstat rtems_showudpstat rtems_select |
---|
27 | C_FILES=$(C_PIECES:%=%.c) |
---|
28 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
29 | |
---|
30 | SRCS=$(C_FILES) |
---|
31 | OBJS=$(C_O_FILES) |
---|
32 | |
---|
33 | include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg |
---|
34 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
35 | |
---|
36 | # |
---|
37 | # Add local stuff here using += |
---|
38 | # |
---|
39 | |
---|
40 | DEFINES += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \ |
---|
41 | -DDIAGNOSTIC -DBOOTP_COMPAT |
---|
42 | CPPFLAGS += |
---|
43 | CFLAGS += |
---|
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 | CLEAN_ADDITIONS += $(LIB) |
---|
53 | CLOBBER_ADDITIONS += |
---|
54 | |
---|
55 | all: ${ARCH} $(LIB) |
---|
56 | |
---|
57 | $(LIB): $(SRCS) ${OBJS} |
---|
58 | $(make-library) |
---|
59 | |
---|
60 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
61 | cd $(top_builddir) \ |
---|
62 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|