mariadb/ndb/examples/ndbapi_example3/Makefile

22 lines
522 B
Makefile
Raw Normal View History

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 \
-L../../../libmysql/.libs \
-L../../../mysys
SYS_LIB =
$(TARGET): $(OBJS)
2005-01-03 11:31:05 +01:00
$(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)