2013-04-16 23:57:27 -04:00
|
|
|
# -*- Mode: Makefile -*-
|
|
|
|
|
|
|
|
.DEFAULT_GOAL=install
|
|
|
|
TOKUROOT=../
|
2013-04-16 23:57:41 -04:00
|
|
|
INCLUDEDIRS=-I.
|
|
|
|
SKIP_LIBPORTABILITYRULE=1
|
2013-04-16 23:57:37 -04:00
|
|
|
include $(TOKUROOT)toku_include/Makefile.include
|
2013-04-16 23:57:27 -04:00
|
|
|
|
|
|
|
OPT_AROPT=-qnoipo #Disable ipo for lib creation even when optimization is on.
|
|
|
|
|
|
|
|
SRCS = $(wildcard *.c)
|
|
|
|
OBJS = $(patsubst %.c,%.$(OEXT),$(SRCS))
|
2013-04-16 23:57:30 -04:00
|
|
|
TARGET = libtokuportability.$(AEXT)
|
2013-04-16 23:57:27 -04:00
|
|
|
|
2013-04-16 23:57:41 -04:00
|
|
|
build install: $(LIBPORTABILITY)
|
2013-04-16 23:57:30 -04:00
|
|
|
|
2013-04-16 23:57:41 -04:00
|
|
|
$(LIBPORTABILITY): $(TARGET)
|
|
|
|
if ! diff $< $@ 2>/dev/null; then cp $< $@; fi
|
2013-04-16 23:57:27 -04:00
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
|
2013-04-16 23:57:41 -04:00
|
|
|
$(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED
|
|
|
|
#Blank on purpose
|
|
|
|
|
2013-04-16 23:57:43 -04:00
|
|
|
check: $(TARGET)
|
|
|
|
cd tests; $(MAKE) check
|
|
|
|
|
2013-04-16 23:57:27 -04:00
|
|
|
clean:
|
2013-04-16 23:57:34 -04:00
|
|
|
rm -rf $(TARGET) $(LIBPORTABILITY)
|
2013-04-16 23:57:43 -04:00
|
|
|
cd tests; $(MAKE) clean
|
2013-04-16 23:57:27 -04:00
|
|
|
|