# LIDAR Makefile

# SHOME is the path to the source directory.
SHOME	= .

# C compiler: chose the default, or the gnu C compiler
CC	= cc
#CC	= gcc

# C compiler options
CFLAGS = -O

# The executable files will be placed in the source directory.
BIN	= $(SHOME)/

all:	$(BIN)centroid		\
	$(BIN)density		\
	$(BIN)fileinfo

$(BIN)centroid:	centroid.c lidar.h
	cc $(CFLAGS) -o $(BIN)centroid centroid.c -lm
$(BIN)density:	density.c lidar.h
	cc $(CFLAGS) -o $(BIN)density density.c -lm
$(BIN)fileinfo:	fileinfo.c lidar.h
	cc $(CFLAGS) -o $(BIN)fileinfo fileinfo.c -lm

clean:
	rm -f $(BIN)centroid $(BIN)density  $(BIN)fileinfo a.out
		
