2013-04-16 23:57:27 -04:00
|
|
|
# -*- Mode: Makefile -*-
|
|
|
|
|
|
|
|
.DEFAULT_GOAL=install
|
|
|
|
TOKUROOT=../
|
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:30 -04:00
|
|
|
$(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED
|
2013-04-16 23:57:30 -04:00
|
|
|
|
2013-04-16 23:57:27 -04:00
|
|
|
install: $(TARGET)
|
2013-04-16 23:57:34 -04:00
|
|
|
cp $(TARGET) $(LIBPORTABILITY)
|
2013-04-16 23:57:27 -04:00
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
|
|
|
|
clean:
|
2013-04-16 23:57:34 -04:00
|
|
|
rm -rf $(TARGET) $(LIBPORTABILITY)
|
2013-04-16 23:57:27 -04:00
|
|
|
|
2013-04-16 23:57:34 -04:00
|
|
|
# For build, do nothing
|
2013-04-16 23:57:40 -04:00
|
|
|
local build:;
|
|
|
|
|