Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
#
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 \
parse.h \
shell.o \
sqlite \
# This is the default Makefile target. The objects listed here
# are what get build when you type just "make" with no arguments.
#
$(ROOTLIBSVCBIN)/%: %
$(INS.file)
native: $(NATIVERELOC)
#
# we don't want this output different every time, so we just suppress it
#
@echo "Generating $@"; \
sed -e 's"--VERS--"$(SQLITE_VERSION)-$(VERSION)"' \
$(SRCDIR)/sqlite.h.in > $@
@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".
#
$(POST_PROCESS)
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: