.SUFFIXES : .c .o

CC = gcc

INC = -I/usr/local/mysql/include/mysql
LIBS = -lmysqlclient -L/usr/local/mysql/lib/mysql

CFLAGS = $(INC)

OBJS = target.o
SRCS = target.c

TARGET = target

all : $(TARGET)

$(TARGET) : $(OBJS)
	$(CC) -Wall -o $@ $(OBJS) $(LIBS)

dep : 
	gccmakedep $(INC) $(SRCS)

clean :
	rm -rf $(OBJS) $(TARGET) core

new :
	$(MAKE) clean
	$(MAKE) 
