2005-01-04 16:15:15 +01:00
|
|
|
TARGET = ndbapi_simple
|
2005-01-03 23:16:59 +01:00
|
|
|
SRCS = $(TARGET).cpp
|
|
|
|
OBJS = $(TARGET).o
|
2004-04-14 10:53:21 +02:00
|
|
|
CXX = g++
|
|
|
|
CFLAGS = -c -Wall -fno-rtti -fno-exceptions
|
2005-01-03 23:16:59 +01:00
|
|
|
CXXFLAGS =
|
2004-04-14 10:53:21 +02:00
|
|
|
DEBUG =
|
|
|
|
LFLAGS = -Wall
|
2005-01-03 23:16:59 +01:00
|
|
|
TOP_SRCDIR = ../../..
|
|
|
|
INCLUDE_DIR = $(TOP_SRCDIR)
|
|
|
|
LIB_DIR = -L$(TOP_SRCDIR)/ndb/src/.libs \
|
|
|
|
-L$(TOP_SRCDIR)/libmysql_r/.libs \
|
2005-03-03 20:21:45 +01:00
|
|
|
-L$(TOP_SRCDIR)/mysys -L$(TOP_SRCDIR)/strings
|
2004-04-14 10:53:21 +02:00
|
|
|
SYS_LIB =
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
2005-03-03 20:21:45 +01:00
|
|
|
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lmystrings -lz $(SYS_LIB) -o $(TARGET)
|
2004-04-14 10:53:21 +02:00
|
|
|
|
|
|
|
$(TARGET).o: $(SRCS)
|
2005-01-03 23:16:59 +01:00
|
|
|
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR)/include -I$(INCLUDE_DIR)/ndb/include -I$(INCLUDE_DIR)/ndb/include/ndbapi $(SRCS)
|
2004-04-14 10:53:21 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o $(TARGET)
|