
# The name of the binary executable to generate
BIN=snake

# Listing of all your object files
OBJS= snake.o

# Comment the following line out to 
# not compile symbols into object files.
DEBUG=-g

CC=g++


###########################################################
### Don't touch below unless you know what you're doin. ###
###########################################################
OPENCVI=/usr/local/include/opencv
OPENCVL=/usr/local
CFLAGS= $(DEBUG) -I$(OPENCVI)
LDFLAGS= $(DEBUG) -L$(OPENCVL)/lib  -lcvaux -lopencv -lhighgui -Wl,-rpath=/usr/local/lib
.c.o:
	$(CC) $(CFLAGS) -c $<
    

all: $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) -o $(BIN)
    
clean:
	rm -rf $(OBJS) $(BIN)
    
