1mydir=lib$(S)rpc$(S)unit-test 2BUILDTOP=$(REL)..$(S)..$(S).. 3 4OBJS= client.o rpc_test_clnt.o rpc_test_svc.o server.o 5SRCS= client.c rpc_test_clnt.c rpc_test_svc.c server.c 6 7all: client server 8 9client: client.o rpc_test_clnt.o $(GSSRPC_DEPLIBS) $(KRB5_BASE_DEPLIBS) 10 $(CC_LINK) -o client client.o rpc_test_clnt.o \ 11 $(GSSRPC_LIBS) $(KRB5_BASE_LIBS) 12 13server: server.o rpc_test_svc.o $(GSSRPC_DEPLIBS) $(KRB5_BASE_DEPLIBS) 14 $(CC_LINK) -o server server.o rpc_test_svc.o \ 15 $(GSSRPC_LIBS) $(KRB5_BASE_LIBS) 16 17client.o server.o: rpc_test.h 18 19# If rpc_test.h and rpc_test_*.c do not work on your system, you can 20# try using rpcgen by uncommenting these lines (be sure to uncomment 21# then in the generated not Makefile.in). 22# rpc_test.h rpc_test_clnt.c rpc_test_svc.c: rpc_test.x 23# -rm -f rpc_test_clnt.c rpc_test_svc.c rpc_test.h 24# -ln -s $(srcdir)/rpc_test.x . 25# rpcgen -l rpc_test.x -o rpc_test_clnt.c 26# rpcgen -m rpc_test.x -o rpc_test_svc.c 27# rpcgen -h rpc_test.x -o rpc_test.h 28# 29# clean: 30# rm -f rpc_test.h rpc_test_clnt.c rpc_test_svc.c 31# 32 33check-pytests: 34 $(RUNPYTEST) $(srcdir)/t_rpc.py $(PYTESTFLAGS) 35 36clean: 37 $(RM) server client 38 39