# Makefile for range_sensor/c/samples
# Satofumi KAMIMURA
# $Id: Makefile 1333 2009-09-23 01:43:49Z satofumi $

# 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 = \
	check_performance \
	reboot_urg \
	get_version_lines \
	get_parameters \
	gd_scan \
	md_scan \
	expand_2d \
	multi_urg \
	get_timestamp \
	index_convert \
	evaluate_timestamp \
	encode_sample \
	capture_sample \
	intensity_sample \
	partial_scan \

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
capture_sample.o: ../../../connection/c/serial_t_lin.h
check_performance.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
check_performance.o: ../../../connection/c/serial_t.h
check_performance.o: ../../../system/c/detect_os.h
check_performance.o: ../../../connection/c/serial_t_lin.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
evaluate_timestamp.o: ../../../connection/c/serial_t_lin.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
expand_2d.o: ../../../connection/c/serial_t_lin.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
gd_scan.o: ../../../connection/c/serial_t_lin.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_parameters.o: ../../../connection/c/serial_t_lin.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_timestamp.o: ../../../connection/c/serial_t_lin.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
get_version_lines.o: ../../../connection/c/serial_t_lin.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
index_convert.o: ../../../connection/c/serial_t_lin.h
index_convert.o: ../../../system/c/math_utils.h
intensity_sample.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
intensity_sample.o: ../../../connection/c/serial_t.h
intensity_sample.o: ../../../system/c/detect_os.h
intensity_sample.o: ../../../connection/c/serial_t_lin.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: ../../../connection/c/serial_t_lin.h ../../../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
multi_urg.o: ../../../connection/c/serial_t_lin.h
partial_scan.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
partial_scan.o: ../../../connection/c/serial_t.h
partial_scan.o: ../../../system/c/detect_os.h
partial_scan.o: ../../../connection/c/serial_t_lin.h
reboot_urg.o: ../urg_ctrl.h ../urg_t.h ../urg_parameter_t.h
reboot_urg.o: ../../../connection/c/serial_t.h ../../../system/c/detect_os.h
reboot_urg.o: ../../../connection/c/serial_t_lin.h ../../../system/c/delay.h
