home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-08-02 | 874 b | 43 lines |
- #!smake
- #
- # Makefile for simple RPC client and server programs.
- #
-
- include /usr/include/make/commondefs
-
- # Object files for the server
- SOBJECTS= rm_svcproc.o rminfo_svc.o rminfo_xdr.o
-
- # Object files for the client
- COBJECTS= rminfo.o rminfo_clnt.o rminfo_xdr.o
-
- SOURCE = $(SOBJECTS:.o=.c) $(COBJECTS:.o=.c)
-
- # Since these files are automatically generated by rpcgen, get rid of
- # them with the "clean" target.
- LDIRT = rminfo_svc.c rminfo_xdr.c rminfo_clnt.c rminfo.h
-
- LLDLIBS = -lrpcsvc
- LCDEFS = -D_BSD_SIGNALS
- LCOPTS = -cckr
- CVERSION=
-
-
- TARGETS = rpc.rminfod rminfo
-
- default all: $(TARGETS)
-
- include $(COMMONRULES)
-
- # The -P option generates the files with ANSI C prototypes.
- rminfo.h: rminfo.x
- rpcgen -P -C "$(CCF) -E" rminfo.x
-
- rminfo: $(COBJECTS)
- $(CCF) $(COBJECTS) $(LDFLAGS) -o $@
-
- rpc.rminfod: $(SOBJECTS)
- $(CCF) $(SOBJECTS) $(LDFLAGS) -o $@
-
- $(SOURCE): rminfo.h
-