mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
e944ee50a6
full_os_(p)write check for partial reads, and fixable errors. git-svn-id: file:///svn/toku/tokudb@17078 c7de825b-a66e-492c-adef-691d508d4ae1
34 lines
820 B
Makefile
34 lines
820 B
Makefile
# -*- Mode: Makefile -*-
|
|
|
|
.DEFAULT_GOAL=install
|
|
TOKUROOT=../
|
|
INCLUDEDIRS=-I. -I$(TOKUROOT)newbrt
|
|
SKIP_LIBPORTABILITYRULE=1
|
|
include $(TOKUROOT)toku_include/Makefile.include
|
|
|
|
OPT_AROPT=-qnoipo #Disable ipo for lib creation even when optimization is on.
|
|
|
|
SRCS = $(wildcard *.c)
|
|
OBJS = $(patsubst %.c,%.$(OEXT),$(SRCS))
|
|
TARGET = libtokuportability.$(AEXT)
|
|
|
|
build install: $(LIBPORTABILITY) $(PTHREAD_LIB)
|
|
|
|
PTHREAD_LIB_CRUNTIME=$(TOKUROOT)windows/lib/$(CRUNTIME)/pthreadVC2.dll
|
|
$(PTHREAD_LIB): $(PTHREAD_LIB_CRUNTIME)
|
|
cp -u $< $@
|
|
|
|
$(LIBPORTABILITY): $(TARGET)
|
|
cp -u $< $@
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
check: $(TARGET)
|
|
cd tests && $(MAKE) check
|
|
|
|
$(OBJS): CPPFLAGS += -DTOKU_WINDOWS_ALLOW_DEPRECATED
|
|
file.obj: CPPFLAGS += -DDONT_DEPRECATE_WRITES
|
|
|
|
clean:
|
|
rm -rf $(TARGET) $(LIBPORTABILITY) $(PTHREAD_LIB)
|
|
cd tests && $(MAKE) clean
|