2 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
8 SQLITE_VERSION
= 2.8.15-repcached
12 include $(SRC
)/lib
/Makefile.lib
18 HDRS
= sqlite.h sqlite-misc.h
19 ROOTHDRDIR
= $(ROOT
)/usr
/include/sqlite-sys
20 ROOTHDRS
= $(HDRS
:%=$(ROOTHDRDIR
)/%)
21 CHECKHDRS
= $(HDRS
:%.h
=%.
check)
22 CLOBBERFILES
+= sqlite.h
27 clean := TARGET
= clean
28 clobber := TARGET
= clobber
29 install := TARGET
= install
32 # This is the default Makefile target. The objects listed here
33 # are what get build when you type just "make" with no arguments.
35 all install: sqlite.h
$(SUBDIRS
)
41 $(ROOTHDRDIR
)/%: % $(ROOTHDRDIR
)
44 install_h
: sqlite.h
$(ROOTHDRS
)
49 # we don't want this output different every time, so we just suppress it
51 sqlite.h
: $(SRCDIR
)/sqlite.h.in
52 @echo
"Generating $@"; \
53 sed
-e
's"--VERS--"$(SQLITE_VERSION)"' \
54 -e s
/--ENCODING--
/$(ENCODING
)/ \
55 $(SRCDIR
)/sqlite.h.in
> $@
58 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
62 include $(SRC
)/lib
/Makefile.targ