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