CC = aCC

OBJS = main.o

INCLUDES = -I/usr/local/mysql/include/ndb -I/usr/local/mysql/include/ndb/ndbapi
DEBUG = -DTRACE_ON -g

all: example

example: $(OBJS) libTPProperty.a
	$(CC) -o example $(OBJS) -L. -L/usr/local/mysql/lib -lndbclient -lpthread -lmysqlclient_r -lmysys -lmystrings -lTPProperty

libTPProperty.a: TPProperty.o
	ar q libTPProperty.a TPProperty.o

clean:
	rm -Rf example $(OBJS) libTPProperty.a TPProperty.o

.C.o :
	$(CC) $(DEBUG) -c $(INCLUDES) -o $@ $<
