#
#
VERS = .1
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 \
SRCS = \
$(SRCDIR)/btree_rb.c \
parse.c \
$(SRCDIR)/tokenize.c \
CPPFLAGS += $(MYCPPFLAGS)
# Header files used by all library source files.
#
HDR = \
parse.h \
../sqlite.h \
$(SRCDIR)/sqliteInt.h \
#
# Sources used for test harness
#
TESTSRC = \
$(SRCDIR)/tclsqlite.c \
#
# Native variants
#
NATIVERELOC = $(RELOC:%.o=%-native.o)
$(NATIVETARGETS) := LDFLAGS =
#
# work around compiler issues
#
testfixture := CFLAGS += \
CLEANFILES += \
$(RELOC) \
$(LINTLIB) \
$(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)/% $(STUBROOTLIBDIR)/%: %
$(INS.file)
$(INS.dir)
$(SMBSRVLIBDIR)/% : % $(SMBSRVLIBDIR)
$(INS.file)
$(INS.file)
$(INS.liblink)
$(INS.liblink)
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 '};' >> $@
#
# We use a recursive invocation because otherwise pmake always rebuilds
# everything, due to multiple expansions of "foo := A += B".
#
unset SUNPRO_DEPENDENCIES; \
else \
exit 1; \
fi
$(RM) parse_tmp.y
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
objs/%.o: %.c
$(COMPILE.c) -o $@ $<
%.o: $(SRCDIR)/%.c
$(COMPILE.c) -o $@ $<
%.o: $(TOOLDIR)/%.c
$(COMPILE.c) -o $@ $<
FRC: