# Makefile for ranges/c/samples
# Satofumi KAMIMURA
# $Id$

# Compile options
CC = gcc
CFLAGS = -g -O0 -Wall -Werror ${INCLUDES}
#CFLAGS = -O2 -Wall -Werror ${INCLUDES}
INCLUDES = -I.. -I../../../connection/c -I../../../system/c
LDFLAGS =
LDLIBS = -lm

# Target
TARGET = get_version_lines \
	get_parameters \
	gd_scan \
	md_scan \
	expand_2d \
	multi_urg \
	get_timestamp \
	index_convert \
	evaluate_timestamp \
	encode_sample \
	capture_sample

all : ${TARGET}

clean :
	${RM} *.o ${TARGET}

depend :
	makedepend -Y -- ${INCLUDES} -- ${wildcard *.h *.c}

.PHONY : all clean depend
######################################################################
REQUIRE_LIBS = ../c_ranges.a ../../../connection/c/c_connection.a ../../../system/c/c_system.a

${REQUIRE_LIBS} :
	cd ${@D}/ && ${MAKE} ${@F}

${TARGET} : ${REQUIRE_LIBS}
# DO NOT DELETE

capture_sample.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
capture_sample.o: ../../../connection/c/serial_t.h
capture_sample.o: ../../../system/c/detect_os.h ../../../system/c/delay.h
evaluate_timestamp.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
evaluate_timestamp.o: ../../../connection/c/serial_t.h
evaluate_timestamp.o: ../../../system/c/detect_os.h ../../../system/c/delay.h
expand_2d.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
expand_2d.o: ../../../connection/c/serial_t.h ../../../system/c/detect_os.h
gd_scan.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
gd_scan.o: ../../../connection/c/serial_t.h ../../../system/c/detect_os.h
get_parameters.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
get_parameters.o: ../../../connection/c/serial_t.h
get_parameters.o: ../../../system/c/detect_os.h
get_timestamp.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
get_timestamp.o: ../../../connection/c/serial_t.h
get_timestamp.o: ../../../system/c/detect_os.h
get_version_lines.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
get_version_lines.o: ../../../connection/c/serial_t.h
get_version_lines.o: ../../../system/c/detect_os.h
index_convert.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
index_convert.o: ../../../connection/c/serial_t.h
index_convert.o: ../../../system/c/detect_os.h
md_scan.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
md_scan.o: ../../../connection/c/serial_t.h ../../../system/c/detect_os.h
md_scan.o: ../../../system/c/delay.h
multi_urg.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
multi_urg.o: ../../../connection/c/serial_t.h ../../../system/c/detect_os.h
