INCS =  -I/usr/include/mysql
LIBS = -L/usr/local/lib

CXX = /usr/bin/g++
CXXFLAGS = -m64 -O3 -fomit-frame-pointer -ffast-math -fPIC -march=opteron
LFLAGS =  -shared -m64

PROGRAMS = udf_test

.SUFFIXES:	.cpp
.SUFFIXES:	.o
.cpp.o:
		$(CXX) $(CXXFLAGS) $(INCS) -c $<

all:		$(PROGRAMS)

clean:
		/bin/rm -rf ii_files core a.out
		/bin/rm -rf *.o

udf_test:	nametest.o
		$(CXX) $(LFLAGS) -o nametest.so $? $(LIBS)
