2 # This is a template Makefile generated by rpcgen
15 TARGETS_SVC.c = set_svc.c set_xdr.c
16 TARGETS_CLNT.c = set_clnt.c set_xdr.c
17 TARGETS = set.h set_xdr.c set_clnt.c set_svc.c
19 OBJECTS_CLNT = $(SOURCES_CLNT.c:%.c=%.o) $(TARGETS_CLNT.c:%.c=%.o) set_client.o
20 OBJECTS_SVC = $(SOURCES_SVC.c:%.c=%.o) $(TARGETS_SVC.c:%.c=%.o) set_server.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)
34 rm set_server.c set_client.c
36 $(OBJECTS_CLNT) : $(SOURCES_CLNT.c) $(SOURCES_CLNT.h) $(TARGETS_CLNT.c) set_client.cpp
38 $(OBJECTS_SVC) : $(SOURCES_SVC.c) $(SOURCES_SVC.h) $(TARGETS_SVC.c) set_server.cpp
40 $(CLIENT) : $(OBJECTS_CLNT)
41 $(LINK.c) -o $(CLIENT) $(OBJECTS_CLNT) $(LDLIBS)
43 $(SERVER) : $(OBJECTS_SVC)
44 $(LINK.c) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS)
47 $(RM) *.o core $(TARGETS) $(OBJECTS_CLNT) $(OBJECTS_SVC) $(CLIENT) $(SERVER) Makefile.set