mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
33 lines
838 B
Makefile
33 lines
838 B
Makefile
-include .defs.mk
|
|
#NDB_OS = OS_YOU_ARE_RUNNING_ON
|
|
#You need to set the NDB_OS variable here
|
|
TARGET = ndbapi_example5
|
|
SRCS = ndbapi_example5.cpp
|
|
OBJS = ndbapi_example5.o
|
|
CXX = g++
|
|
CFLAGS = -c -Wall -fno-rtti -fno-exceptions
|
|
DEBUG =
|
|
LFLAGS = -Wall
|
|
INCLUDE_DIR = ../../include
|
|
LIB_DIR = ../../lib
|
|
ifeq ($(NDB_OS), SOLARIS)
|
|
# Here is the definition of system libraries necessary for Solaris 7
|
|
SYS_LIB =
|
|
endif
|
|
ifeq ($(NDB_OS), LINUX)
|
|
# Here is the definition of system libraries necessary for Linux 2.4
|
|
SYS_LIB =
|
|
endif
|
|
ifeq ($(NDB_OS), MACOSX)
|
|
# Here is the definition of system libraries necessary for Mac OS X
|
|
SYS_LIB =
|
|
endif
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CXX) $(LFLAGS) -L$(LIB_DIR) $(OBJS) -lNDB_API $(SYS_LIB) -o $(TARGET)
|
|
|
|
$(TARGET).o: $(SRCS)
|
|
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/ndbapi $(SRCS)
|
|
|
|
clean:
|
|
rm -f *.o $(TARGET)
|