mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
63b1969fbb
git-svn-id: file:///svn/toku/tokudb@43179 c7de825b-a66e-492c-adef-691d508d4ae1
38 lines
859 B
Makefile
38 lines
859 B
Makefile
# -*- Mode: Makefile -*-
|
|
|
|
.DEFAULT_GOAL=install
|
|
TOKUROOT=../
|
|
INCLUDEDIRS=-I. -I$(TOKUROOT)/include
|
|
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 = $(LIBPORTABILITY_SO) $(LIBPORTABILITY_A)
|
|
|
|
local build install: $(TARGET)
|
|
|
|
ifeq ($(CC),icc)
|
|
#LINUX_NOSTDLIB=-nostdlib
|
|
LINUX_NOSTDLIB=-static-intel -diag-disable 10237
|
|
else
|
|
LINUX_NOSTDLIB=
|
|
endif
|
|
|
|
$(LIBPORTABILITY_SO): $(OBJS)
|
|
$(CC) -shared $(SYMBOLS) $(OBJS) $(SKIP_WARNING) -o $@ $(LINUX_NOSTDLIB) $(GCOV_FLAGS)
|
|
$(LIBPORTABILITY_A): $(OBJS)
|
|
$(AR) cr $@ $(OBJS)
|
|
|
|
$(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED -D_GNU_SOURCE
|
|
$(OBJS): VISIBILITY=
|
|
#Blank on purpose
|
|
|
|
check: $(TARGET)
|
|
cd tests && $(MAKE) check
|
|
|
|
clean:
|
|
rm -rf $(TARGET)
|
|
cd tests && $(MAKE) clean
|
|
|