Makefile.com revision 7f11fd00fc23e2af7ae21cc8837a2b86380dcfa7
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
#
# Make the SO name unlikely to conflict with any other
# libsqlite that might also be found on the system.
OBJECTS = \
attach.o \
auth.o \
btree.o \
build.o \
copy.o \
date.o \
delete.o \
encode.o \
expr.o \
func.o \
hash.o \
insert.o \
main.o \
os.o \
pager.o \
parse.o \
pragma.o \
printf.o \
random.o \
select.o \
table.o \
update.o \
util.o \
vacuum.o \
vdbe.o \
# install this library in the root filesystem
# generated sources
# all sources
SRCS = \
$(GENSRC) \
$(SRCDIR)/btree_rb.c \
$(SRCDIR)/tokenize.c \
CPPFLAGS += $(MYCPPFLAGS)
# headers generated here
# Header files used by all library source files.
#
HDR = \
$(GENHDR) \
../sqlite.h \
$(SRCDIR)/sqliteInt.h \
#
# Sources used for test harness
#
TESTSRC = \
$(SRCDIR)/tclsqlite.c \
#
#
NATIVEOBJS = $(OBJS:%.o=%-native.o)
$(NATIVETARGETS) := LDFLAGS =
#
# work around compiler issues
#
testfixture := CFLAGS += \
CLEANFILES += \
$(NATIVETARGETS) \
$(TESTCLEAN) \
lemon \
lemon.o \
lempar.c \
parse.c \
# This is the default Makefile target. The objects listed here
# are what get build when you type just "make" with no arguments.
#
$(ROOTLIBDIR)/$(DYNLIB) \
$(ROOTLIBDIR)/$(LINTLIB) \
$(ROOTLIBDIR)/$(NATIVERELOC)
lint:
$(INS.liblink)
$(ROOTLINTDIR)/%: ../%
$(INS.file)
native: $(NATIVERELOC)
@echo "Generating $@"; \
$(RM) -f $@ ; \
echo '/* Automatically generated file. Do not edit */' > $@ ; \
sed -e 's/://' | \
$(AWK) '{printf "#define %-30s %3d\n", $$2, ++cnt}' >> $@
@echo "Generating $@"; \
$(RM) -f $@ ; \
echo '/* Automatically generated file. Do not edit */' > $@ ; \
echo 'char *sqliteOpcodeNames[] = { "???", ' >> $@ ; \
echo '};' >> $@
unset SUNPRO_DEPENDENCIES; \
else \
exit 1; \
fi
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
# need direct rules for generated files
FRC: