2013-04-16 23:57:27 -04:00
|
|
|
# -*- Mode: Makefile -*-
|
|
|
|
|
|
|
|
.DEFAULT_GOAL=install
|
|
|
|
TOKUROOT=../
|
|
|
|
INCLUDEDIRS=-I$(TOKUROOT)include/linux -I$(TOKUROOT)newbrt
|
|
|
|
include $(TOKUROOT)include/Makefile.include
|
|
|
|
|
|
|
|
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)
|
|
|
|
$(MAYBEATSIGN)cp $(TARGET) $(LIBPORTABILITY)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(MAYBEATSIGN)rm -rf $(TARGET) $(LIBPORTABILITY)
|
|
|
|
|