# Make file for libmic/common 
#
# Written by: Douglas C. MacKenzie
#
# Copyright 1996-2002.  All Rights Reserved.                      
# Mobile Intelligence Corporation                                
# Livonia, Michigan, USA                                           
#                                                              
#********************************************************************

# $Id: makefile,v 1.1.1.1 2008/07/14 16:44:16 endo Exp $

# ---------------------------------------------------

# Get system wide defaults
include $(SUPPORT_DIR)/make.include
include ../../make.local

# ---------------------------------------------------

CC_SRCS = r2c_client.cc r2c_client_support.cc r2c_xdr.cc r2c_server.cc \
	r2c_server_support.cc

# ---------------------------------------------------
RPCFLAGS = -C -b -N
# ---------------------------------------------------

INCLUDES = -I../../include -I$(LIBMIC_DIR)/include \
	-I$(LIBIPC_SUPPORT_DIR)/include 

../$(ARCHIVE): $(OBJS)
	$(AR) $(ARFLAGS) $@ $^
	
all: ../$(ARCHIVE)

#Make a header file for the RPC stuff
r2c_defs.h: r2c_defs.x
	mic_rpcgen $(RPCFLAGS) -h r2c_defs.x | ./clean_defs.sh > r2c_defs.h

#make client-side stubs for the RPC stuff
r2c_client.cc: r2c_defs.x r2c_defs.h
	mic_rpcgen $(RPCFLAGS) -l r2c_defs.x | ./clean_client.sh > r2c_client.cc

#make the XDR routines
r2c_xdr.cc: r2c_defs.h
	mic_rpcgen $(RPCFLAGS) -c r2c_defs.x | ./clean_xdr.sh > r2c_xdr.cc

#make server-side stubs for the RPC stuff
#we breath on it a bit to get the function names to match
r2c_server.cc: r2c_defs.h
	mic_rpcgen $(RPCFLAGS) -m r2c_defs.x | ./clean_server.sh > r2c_server.cc

doc: robot2con.ps

# Get general, invariant targets
EXTRA_DELETES = r2c_xdr.cc r2c_client.cc r2c_server.cc r2c_defs.h
include $(SUPPORT_DIR)/make.targets

#depend: r2c_xdr.cc r2c_client.cc r2c_server.cc
#	makedepend $(DEPEND_FLAGS) $(INCLUDES) -- $(Y_SRCS) $(L_SRCS) $(CC_SRCS) $(C_SRCS) 

#######################################################################
# $Log: makefile,v $
# Revision 1.1.1.1  2008/07/14 16:44:16  endo
# MAST Project (based on MissionLab-MINOS-20071018.tar.gz)
#
# Revision 1.1.1.1  2006/07/20 17:17:46  endo
# MINOS Project (based on MissionLab-7.0.20060712.tar.gz)
#
# Revision 1.1.1.1  2006/07/12 13:37:54  endo
# MissionLab 7.0
#
# Revision 1.1  2006/07/01 00:22:47  endo
# CMDLi from MARS 2020 migrated into AO-FNC repository.
#
# Revision 1.1.1.1  2006/06/29 20:42:07  endo
# cmdli local repository.
#
# Revision 1.38  2004/03/31 14:19:02  doug
# add extra cleanups
#
# Revision 1.37  2004/03/26 22:42:28  doug
# making progress on win32 build
#
# Revision 1.36  2004/03/26 22:40:16  doug
# making progress on win32 build
#
# Revision 1.35  2004/03/26 22:30:57  doug
# making progress on win32 build
#
# Revision 1.34  2004/03/26 16:57:22  doug
# switched to using make.target
#
# Revision 1.33  2004/03/24 22:15:40  doug
# working on win32 port
#
# Revision 1.32  2004/03/12 20:36:46  doug
# snap
#
# Revision 1.31  2004/03/08 14:52:20  doug
# cross compiles on visual C++
#
# Revision 1.30  2004/02/28 19:26:17  doug
# builds clean on Fedora (commented out a matcon call)
#
# Revision 1.29  2004/02/28 16:35:25  doug
# getting cmdli to work in sara
#
# Revision 1.28  2004/02/20 20:55:16  doug
# barriers work
#
# Revision 1.27  2003/12/10 17:23:39  doug
# working on tasker
#
# Revision 1.26  2003/11/26 22:50:44  doug
# working on state machines
#
# Revision 1.25  2003/11/26 15:21:40  doug
# back from GaTech
#
# Revision 1.24  2003/11/07 22:54:35  doug
# working on cmdl_io
#
# Revision 1.23  2003/11/07 20:29:11  doug
# added cmdli interpreter library
#
# Revision 1.22  2003/11/03 22:43:45  doug
# adding defComposite support
#
# Revision 1.21  2003/10/22 20:34:17  doug
# still working on glyph_editor
#
# Revision 1.20  2003/10/07 21:02:43  doug
# working on open click
#
# Revision 1.19  2003/09/29 19:09:14  doug
# getting hooked into mouse events
#
# Revision 1.18  2003/08/25 22:01:56  doug
# builds against libccl_gui
#
# Revision 1.17  2003/08/22 21:23:55  doug
# Back from Benning
#
# Revision 1.16  2003/07/09 22:19:17  doug
# The robot now exits cleanly
#
# Revision 1.15  2003/07/08 20:48:04  doug
# Added termination support using an extra abort pipe
#
# Revision 1.14  2003/06/30 22:30:44  doug
# Added altitude to robots
#
# Revision 1.13  2003/06/27 19:13:46  doug
# got tomahawk to display
#
# Revision 1.12  2003/04/25 22:13:37  doug
# still working on tcp support
#
# Revision 1.11  2003/04/24 20:56:53  doug
# still coding on tcp support
#
# Revision 1.10  2003/04/23 20:57:16  doug
# still working on tcp support
#
# Revision 1.9  2003/04/07 12:44:45  doug
# moving to RedHat 9
#
# Revision 1.8  2003/03/21 15:55:35  doug
# moved libccl_code to the sara namespace
#
# Revision 1.7  2003/03/13 22:42:09  doug
# seems to work
#
# Revision 1.6  2003/03/03 13:44:28  doug
# seems to work
#
# Revision 1.5  2003/02/26 22:16:24  doug
# integrated with opcon
#
# Revision 1.4  2002/10/08 14:41:55  doug
# fix so works without special environment setup
#
# Revision 1.3  2002/10/03 15:33:31  doug
# fixed include in makefile
#
# Revision 1.2  2002/10/02 18:12:35  doug
# added missing dependencies to depend target
#
# Revision 1.1.1.1  2002/10/02 18:07:00  doug
# Initial import into cvs
#
#
#######################################################################



###########################################################################
# dependencies generated by makedepend

# DO NOT DELETE

