# -*- 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) $(LIBPORTABILITY): $(TARGET) if ! diff $< $@ 2>/dev/null; then cp $< $@; fi $(TARGET): $(OBJS) check: $(TARGET) cd tests && $(MAKE) check clean: rm -rf $(TARGET) $(LIBPORTABILITY) cd tests && $(MAKE) clean