mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
21 lines
522 B
Makefile
21 lines
522 B
Makefile
TARGET = ndbapi_example2
|
|
SRCS = ndbapi_example2.cpp
|
|
OBJS = ndbapi_example2.o
|
|
CXX = g++
|
|
CFLAGS = -c -Wall -fno-rtti -fno-exceptions
|
|
DEBUG =
|
|
LFLAGS = -Wall
|
|
INCLUDE_DIR = ../../include
|
|
LIB_DIR = -L../../src/.libs \
|
|
-L../../../libmysql/.libs \
|
|
-L../../../mysys
|
|
SYS_LIB =
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CXX) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient -lmysys $(SYS_LIB) -o $(TARGET)
|
|
|
|
$(TARGET).o: $(SRCS)
|
|
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/ndbapi $(SRCS)
|
|
|
|
clean:
|
|
rm -f *.o $(TARGET)
|