mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02:00
Initial revision of NDB Cluster files
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
This commit is contained in:
parent
0ba6cb48d8
commit
6386c55cee
1835 changed files with 500032 additions and 0 deletions
34
ndb/examples/ndbapi_async_example/Makefile
Normal file
34
ndb/examples/ndbapi_async_example/Makefile
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
-include ../../Defs.mk
|
||||
#NDB_OS = OS_YOU_ARE_RUNNING_ON
|
||||
#NDB_OS = LINUX
|
||||
#You need to set the NDB_OS variable here (LINUX, SOLARIS, MACOSX)
|
||||
TARGET = ndbapi_async
|
||||
SRCS = ndbapi_async.cpp
|
||||
OBJS = ndbapi_async.o
|
||||
CC = g++
|
||||
CFLAGS = -c -Wall -fno-rtti -D$(NDB_OS)
|
||||
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 = -lpthread -lsocket -lnsl -lrt
|
||||
endif
|
||||
ifeq ($(NDB_OS), LINUX)
|
||||
# Here is the definition of system libraries necessary for Linux 2.4
|
||||
SYS_LIB = -lpthread
|
||||
endif
|
||||
ifeq ($(NDB_OS), MACOSX)
|
||||
# Here is the definition of system libraries necessary for Mac OS X
|
||||
SYS_LIB =
|
||||
endif
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) $(LFLAGS) -L$(LIB_DIR) -lNDB_API $(OBJS) $(SYS_LIB) -o $(TARGET)
|
||||
|
||||
$(TARGET).o: $(SRCS)
|
||||
$(CC) $(CFLAGS) -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/ndbapi $(SRCS)
|
||||
|
||||
clean:
|
||||
rm -f *.o $(TARGET)
|
||||
Loading…
Add table
Add a link
Reference in a new issue