1*c5c4113dSnw141292# 2*c5c4113dSnw141292# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 3*c5c4113dSnw141292# Use is subject to license terms. 4*c5c4113dSnw141292# 5*c5c4113dSnw141292#ident "%Z%%M% %I% %E% SMI" 6*c5c4113dSnw141292# 7*c5c4113dSnw141292 8*c5c4113dSnw141292SUBDIRS = $(MACH) 9*c5c4113dSnw141292 10*c5c4113dSnw141292SQLITE_VERSION = 2.8.15-repcached 11*c5c4113dSnw141292 12*c5c4113dSnw141292VERS = .1 13*c5c4113dSnw141292 14*c5c4113dSnw141292include $(SRC)/lib/Makefile.lib 15*c5c4113dSnw141292 16*c5c4113dSnw141292ENCODING = ISO8859 17*c5c4113dSnw141292 18*c5c4113dSnw141292SRCDIR= src 19*c5c4113dSnw141292 20*c5c4113dSnw141292HDRS= sqlite.h sqlite-misc.h 21*c5c4113dSnw141292ROOTHDRDIR= $(ROOT)/usr/include/sqlite 22*c5c4113dSnw141292ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%) 23*c5c4113dSnw141292CHECKHDRS= $(HDRS:%.h=%.check) 24*c5c4113dSnw141292CLEANFILES += sqlite.h 25*c5c4113dSnw141292 26*c5c4113dSnw141292.KEEP_STATE: 27*c5c4113dSnw141292 28*c5c4113dSnw141292all := TARGET= all 29*c5c4113dSnw141292clean := TARGET= clean 30*c5c4113dSnw141292clobber := TARGET= clobber 31*c5c4113dSnw141292install := TARGET= install 32*c5c4113dSnw141292lint := TARGET= lint 33*c5c4113dSnw141292 34*c5c4113dSnw141292 35*c5c4113dSnw141292# This is the default Makefile target. The objects listed here 36*c5c4113dSnw141292# are what get build when you type just "make" with no arguments. 37*c5c4113dSnw141292# 38*c5c4113dSnw141292all clobber install lint: $(SUBDIRS) 39*c5c4113dSnw141292 40*c5c4113dSnw141292$(ROOTHDRDIR): 41*c5c4113dSnw141292 $(INS.dir) 42*c5c4113dSnw141292 43*c5c4113dSnw141292$(ROOTHDRDIR)/%: % $(ROOTHDRDIR) 44*c5c4113dSnw141292 $(INS.file) 45*c5c4113dSnw141292 46*c5c4113dSnw141292install_h: sqlite.h $(ROOTHDRS) 47*c5c4113dSnw141292 48*c5c4113dSnw141292check: 49*c5c4113dSnw141292 50*c5c4113dSnw141292# 51*c5c4113dSnw141292# we don't want this output different every time, so we just suppress it 52*c5c4113dSnw141292# 53*c5c4113dSnw141292sqlite.h: $(SRCDIR)/sqlite.h.in 54*c5c4113dSnw141292 @echo "Generating $@"; \ 55*c5c4113dSnw141292 sed -e 's"--VERS--"$(SQLITE_VERSION)-$(VERSION)"' \ 56*c5c4113dSnw141292 -e s/--ENCODING--/$(ENCODING)/ \ 57*c5c4113dSnw141292 $(SRCDIR)/sqlite.h.in > $@ 58*c5c4113dSnw141292 59*c5c4113dSnw141292$(SUBDIRS): FRC 60*c5c4113dSnw141292 @cd $@; pwd; $(MAKE) $(TARGET) 61*c5c4113dSnw141292 62*c5c4113dSnw141292FRC: 63*c5c4113dSnw141292 64*c5c4113dSnw141292include $(SRC)/lib/Makefile.targ 65