Makefile revision c5c4113dfcabb1eed3d4bdf7609de5170027a794
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Use is subject to license terms.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#ident "%Z%%M% %I% %E% SMI"
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncSUBDIRS = $(MACH)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncSQLITE_VERSION = 2.8.15-repcached
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVERS = .1
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinclude $(SRC)/lib/Makefile.lib
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncENCODING = ISO8859
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncSRCDIR= src
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncHDRS= sqlite.h sqlite-misc.h
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncROOTHDRDIR= $(ROOT)/usr/include/sqlite
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCHECKHDRS= $(HDRS:%.h=%.check)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCLEANFILES += sqlite.h
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync.KEEP_STATE:
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncall := TARGET= all
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncclean := TARGET= clean
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncclobber := TARGET= clobber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinstall := TARGET= install
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynclint := TARGET= lint
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# This is the default Makefile target. The objects listed here
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# are what get build when you type just "make" with no arguments.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncall clobber install lint: $(SUBDIRS)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync$(ROOTHDRDIR):
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync $(INS.dir)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync$(ROOTHDRDIR)/%: % $(ROOTHDRDIR)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync $(INS.file)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinstall_h: sqlite.h $(ROOTHDRS)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynccheck:
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# we don't want this output different every time, so we just suppress it
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncsqlite.h: $(SRCDIR)/sqlite.h.in
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @echo "Generating $@"; \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync sed -e 's"--VERS--"$(SQLITE_VERSION)-$(VERSION)"' \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync -e s/--ENCODING--/$(ENCODING)/ \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync $(SRCDIR)/sqlite.h.in > $@
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync$(SUBDIRS): FRC
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @cd $@; pwd; $(MAKE) $(TARGET)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncFRC:
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinclude $(SRC)/lib/Makefile.targ
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync