# Makefile for range_sensor/c
# Satofumi KAMIMURA
# $Id: Makefile 883 2009-05-13 19:32:54Z satofumi $

# Compile options
CC = gcc
CFLAGS = -g -O0 -Wall -W -Werror $(INCLUDES)
INCLUDES = -I../../connection/c -I../../system/c
LDFLAGS =
LDLIBS =


# Target
C_RANGES_LIB = c_ranges.a
TARGET = $(C_RANGES_LIB)

all : $(TARGET)

clean :
	$(RM) *.o $(TARGET)
	-cd samples/ && $(MAKE) clean
#	-cd c_urg_html/ && $(RM) -rf *

html :
	doxygen

depend :
	makedepend -Y -- $(INCLUDES) -- $(wildcard *.h *.c)

.PHONY : all clean depend
######################################################################
$(C_RANGES_LIB) : \
	$(C_RANGES_LIB)(scip_handler.o) \
	$(C_RANGES_LIB)(urg_errno.o) \
	$(C_RANGES_LIB)(urg_ctrl.o)

# DO NOT DELETE

scip_handler.o: urg_parameter_t.h ../../connection/c/serial_t.h
scip_handler.o: ../../system/c/detect_os.h ../../connection/c/serial_t_lin.h
urg_ctrl.o: urg_t.h urg_parameter_t.h ../../connection/c/serial_t.h
urg_ctrl.o: ../../system/c/detect_os.h ../../connection/c/serial_t_lin.h
urg_t.o: urg_parameter_t.h ../../connection/c/serial_t.h
urg_t.o: ../../system/c/detect_os.h ../../connection/c/serial_t_lin.h
scip_handler.o: scip_handler.h urg_parameter_t.h
scip_handler.o: ../../connection/c/serial_t.h ../../system/c/detect_os.h
scip_handler.o: ../../connection/c/serial_t_lin.h
scip_handler.o: ../../connection/c/serial_errno.h
scip_handler.o: ../../connection/c/serial_ctrl.h
scip_handler.o: ../../connection/c/serial_utils.h urg_errno.h
urg_ctrl.o: ../../system/c/math_utils.h ../../system/c/detect_os.h urg_ctrl.h
urg_ctrl.o: urg_t.h urg_parameter_t.h ../../connection/c/serial_t.h
urg_ctrl.o: ../../connection/c/serial_t_lin.h scip_handler.h urg_errno.h
urg_ctrl.o: ../../connection/c/serial_ctrl.h
urg_ctrl.o: ../../connection/c/serial_utils.h
urg_ctrl.o: ../../connection/c/serial_errno.h ../../system/c/getTicks.h
urg_ctrl.o: ../../system/c/delay.h
urg_errno.o: urg_errno.h
