source: network-demos/rpc_demo/Makefile @ cd8aff0

4.11network-demos-4-10-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branch
Last change on this file since cd8aff0 was e6f3168, checked in by Joel Sherrill <joel.sherrill@…>, on 04/29/00 at 19:53:34

New test from Eric Norum <eric@…> to exercise RPC/XDR.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2# Makefile for RTEMS RPC server or client
3#
4# To build an RTEMS RPC server
5#       make
6# To build an RTEMS RPC client
7#       `make SERVER=hostname'
8# where `hostname' is the name of the RPC server
9#
10SAMPLE=rpc
11PGM=${ARCH}/$(SAMPLE).exe
12
13MANAGERS=io event semaphore timer
14
15# C source names, if any, go here -- minus the .c
16ifdef SERVER
17C_PIECES= init rprintmsg msg_clnt
18else
19C_PIECES= init msg_main msg_proc
20endif
21C_FILES=$(C_PIECES:%=%.c)
22C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
23
24H_FILES=
25
26DOCTYPES=
27DOCS=$(DOCTYPES:%=$(SAMPLE).%)
28
29SRCS=$(DOCS) $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
30OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
31
32PRINT_SRCS=$(DOCS)
33
34PGM=${ARCH}/$(SAMPLE).exe
35
36include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
37include $(RTEMS_CUSTOM)
38include $(PROJECT_ROOT)/make/leaf.cfg
39
40#
41# (OPTIONAL) Add local stuff here using +=
42#
43
44ifdef SERVER
45DEFINES  += "-DSERVER=$(SERVER)"
46endif
47DEFINES  += -Dmain=rtems_main
48#CPPFLAGS += -I../ftp.FreeBSD.org/pub/FreeBSD/branches/-current/src/include
49#CPPFLAGS += -I../ftp.FreeBSD.org/pub/FreeBSD/branches/-current/src/sys
50CFLAGS   +=
51CFLAGS_OPTIMIZE_V   +=
52
53LD_PATHS  +=
54#LD_LIBS   += ../ftp.FreeBSD.org/pub/FreeBSD/branches/-current/src/lib/libc/rpc/o-optimize/librpc.a
55#LD_LIBS   += ../ftp.FreeBSD.org/pub/FreeBSD/branches/-current/src/lib/libc/xdr/o-optimize/libxdr.a
56
57#
58# Add your list of files to delete here.  The config files
59#  already know how to delete some stuff, so you may want
60#  to just run 'make clean' first to see what gets missed.
61#  'make clobber' already includes 'make clean'
62#
63
64CLEAN_ADDITIONS +=
65CLOBBER_ADDITIONS +=
66
67all:    ${ARCH} $(SRCS) $(PGM)
68
69${PGM}: $(OBJS) $(LINK_FILES)
70        $(make-exe)
71
72foo:
73        echo $(RTEMS_BSP)
74# Install the program(s), appending _g or _p as appropriate.
75# for include files, just use $(INSTALL)
76install:  all
77        $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests
Note: See TracBrowser for help on using the repository browser.