# df3vt 0.1.2 sqlite3 loadable extension

CC = /usr/bin/gcc

CFLAGS = -std=gnu99 -pedantic -fPIC -Werror -Wall -Wextra

CFLAGS += -m64 -march=native -mtune=native -O2

LDFLAGS = -shared

libs = -ldf3

sqlext = df3vt.so


.PHONY: all clean tags

.SILENT:

all: $(sqlext)
	@strip --strip-unneeded $?

df3vt.so: df3vt.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(libs)

tags:
	ctags $(sqlext:.so=.c)

clean:
	rm -f $(sqlext) tags

# ----------------------------------------------------------------- #
#  this file is part of of the 'df3 tools' project.                 #
#  the content above is covered by the GPLv3+, see file COPYING.    #
#  copyright (c) 2017 jr <creature.eternal@gmail.com>.              #
#  all rights reserved.                                             #
# ----------------------------------------------------------------- #
