2 # This is a template Makefile generated by rpcgen
15 TARGETS_SVC.c = set_svc.c set_server.cpp set_xdr.c
16 TARGETS_CLNT.c = set_clnt.c set_client.cpp set_xdr.c
17 TARGETS = set.h set_xdr.c set_clnt.c set_svc.c set_server.c set_client.c
19 OBJECTS_CLNT = $(SOURCES_CLNT.c:%.c=%.o) $(TARGETS_CLNT.c:%.c=%.o)
20 OBJECTS_SVC = $(SOURCES_SVC.c:%.c=%.o) $(TARGETS_SVC.c:%.c=%.o)
23 CFLAGS += -g -Wall -I../common
24 LDLIBS += -lnsl ../common/common.a
30 all : $(CLIENT) $(SERVER)
32 $(TARGETS) : $(SOURCES.x)
33 rpcgen $(RPCGENFLAGS) $(SOURCES.x)
35 $(OBJECTS_CLNT) : $(SOURCES_CLNT.c) $(SOURCES_CLNT.h) $(TARGETS_CLNT.c)
37 $(OBJECTS_SVC) : $(SOURCES_SVC.c) $(SOURCES_SVC.h) $(TARGETS_SVC.c)
39 $(CLIENT) : $(OBJECTS_CLNT)
40 $(LINK.c) -o $(CLIENT) $(OBJECTS_CLNT) $(LDLIBS)
42 $(SERVER) : $(OBJECTS_SVC)
43 $(LINK.c) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS)
46 # $(RM) core $(TARGETS) $(OBJECTS_CLNT) $(OBJECTS_SVC) $(CLIENT) $(SERVER)