########################################################################
#                                                                      #
#  Sample Makefile for building Kinemation 2.x motion capture servers  #
#                                                                      #
########################################################################

#
########################################################################
#
#  Directories
#

INC_DIR =	.
LIB_DIR =	.

#
########################################################################
#
#  Include Files
#

INC_FILES =	$(INC_DIR)/capserver.h \
		$(INC_DIR)/capserial.h \
		$(INC_DIR)/captcp.h

#
########################################################################
#
#  Libraries
#

LIB_FILES =	$(LIB_DIR)/libcapserver.a

#
########################################################################
#
#  Targets
#

all:	servers

#
########################################################################
#
#  Servers
#

servers:	clock_server

clock_server:	clock_server.c $(LIB_FILES) $(INC_FILES)
	$(CC) $(CFLAGS) clock_server.c -L$(LIB_DIR) -I$(INC_DIR) \
		-lcapserver -lm -o $@

flock_server:	flock_server.c $(LIB_FILES) $(INC_FILES)
	$(CC) $(CFLAGS) flock_server.c -L$(LIB_DIR) -I$(INC_DIR) \
		-lcapserver -lm -o $@

