LIBS = -lgourmand
CFLAGS = -g
LDFLAGS = -g -L.
CC = g++
AS = as
AR = ar

# build rules for c++
.SUFFIXES:
.SUFFIXES: .o .cc .c .y .l .s
.cc.o:
	$(CC) $(CFLAGS) -c  $*.cc

#####################################################################

all: libgourmand.a gourmand

libgourmand.a: libgourm.cc
	$(CC) -g -c libgourm.cc -o libgourmand.a

gourmand: gourmand.o libgourmand.a
	$(CC) $(LDFLAGS) gourmand.o $(LIBS) -o gourmand

