2004-04-14 10:53:21 +02:00
|
|
|
TARGET = ndbapi_example3
|
|
|
|
SRCS = ndbapi_example3.cpp
|
|
|
|
OBJS = ndbapi_example3.o
|
|
|
|
CXX = g++
|
|
|
|
CFLAGS = -c -Wall -fno-rtti -fno-exceptions
|
|
|
|
DEBUG =
|
|
|
|
LFLAGS = -Wall
|
|
|
|
INCLUDE_DIR = ../../include
|
2005-01-03 11:31:05 +01:00
|
|
|
LIB_DIR = -L../../src/.libs \
|
2005-01-03 17:44:57 +01:00
|
|
|
-L../../../libmysql_r/.libs \
|
2005-01-03 11:31:05 +01:00
|
|
|
-L../../../mysys
|
2004-04-14 10:53:21 +02:00
|
|
|
SYS_LIB =
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
2005-01-03 17:44:57 +01:00
|
|
|
$(CXX) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lz $(SYS_LIB) -o $(TARGET)
|
2004-04-14 10:53:21 +02:00
|
|
|
|
|
|
|
$(TARGET).o: $(SRCS)
|
|
|
|
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/ndbapi $(SRCS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o $(TARGET)
|