uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

Makefile.rpc (1042B)


      1 # This is a template makefile generated		by rpcgen 
      2 
      3 # Parameters 
      4 
      5 CLIENT = rpc_client
      6 SERVER = rpc_server
      7 
      8 SOURCES_CLNT.c = 
      9 SOURCES_CLNT.h = 
     10 SOURCES_SVC.c = 
     11 SOURCES_SVC.h = 
     12 SOURCES.x = rpc.x
     13 
     14 TARGETS_SVC.c = rpc_server.c rpc_svc.c rpc_xdr.c 
     15 TARGETS_CLNT.c = rpc_client.c rpc_clnt.c rpc_xdr.c 
     16 TARGETS = rpc.h rpc_xdr.c rpc_clnt.c rpc_svc.c
     17 
     18 OBJECTS_CLNT = $(SOURCES_CLNT.c:%.c=%.o) $(TARGETS_CLNT.c:%.c=%.o) 
     19 OBJECTS_SVC = $(SOURCES_SVC.c:%.c=%.o) $(TARGETS_SVC.c:%.c=%.o) 
     20 # Compiler flags 
     21 CFLAGS += -g -DRPC_SVC_FG
     22 RPCGENFLAGS = -C
     23 
     24 # Targets 
     25 
     26 all : $(CLIENT) $(SERVER)
     27 
     28 $(TARGETS) : $(SOURCES.x) 
     29 	rpcgen $(RPCGENFLAGS) $(SOURCES.x)
     30 
     31 $(OBJECTS_CLNT) : $(SOURCES_CLNT.c) $(SOURCES_CLNT.h) $(TARGETS_CLNT.c) 
     32 
     33 $(OBJECTS_SVC) : $(SOURCES_SVC.c) $(SOURCES_SVC.h) $(TARGETS_SVC.c) 
     34 
     35 $(CLIENT) : $(OBJECTS_CLNT) 
     36 	$(CC) -o $(CLIENT) $(OBJECTS_CLNT) $(LDLIBS) $(CFLAGS)
     37 
     38 $(SERVER) : $(OBJECTS_SVC) 
     39 	$(CC) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS) $(CFLAGS)
     40 
     41 clean:
     42 	 rm -f core $(TARGETS) $(OBJECTS_CLNT) $(OBJECTS_SVC) $(CLIENT) $(SERVER)