Programming Wiki: rpcgenMakefile

Programming Wiki : rpcgenMakefile

WikiHomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
pp.x is the only file that rpcgen will start with to generate the rest of the files

Makefile
HOME_DIR = ..

TARGETS = pp.h pp_clnt.c pp_xdr.c pp_svc.c

$(TARGETS) : pp.x
	    rpcgen -a -C pp.x
	    cp pp.h $(HOME_DIR)/pp_server/pp.h; \
	    cp pp.h $(HOME_DIR)/pp_client/pp.h; \
	    cp pp_svc.c $(HOME_DIR)/pp_server/pp_svc.cxx; \
	    cp pp_xdr.c $(HOME_DIR)/pp_server/pp_xdr.cxx; \
	    cp pp_clnt.c $(HOME_DIR)/pp_client/pp_clnt.cxx; \
	    cp pp_xdr.c $(HOME_DIR)/pp_client/pp_xdr.cxx


all : $(TARGETS)

clean:
	    rm -f makefile.pp Makefile.pp pp.h pp_client.c pp_server.c pp_clnt.c \
	       pp_svc.c pp_xdr.c

There are no comments on this page. [Add comment]

Powered by Wikka Wakka Wiki 1.1.6.0
Page was generated in 0.0083 seconds