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
33 # This is the default Makefile target. The objects listed here
34 # are what get build when you type just "make" with no arguments.
36 all install: sqlite.h
$(SUBDIRS
)
37 clobber lint
: $(SUBDIRS
)
42 $(ROOTHDRDIR
)/%: % $(ROOTHDRDIR
)
45 install_h
: sqlite.h
$(ROOTHDRS
)
50 # we don't want this output different every time, so we just suppress it
52 sqlite.h
: $(SRCDIR
)/sqlite.h.in
53 @echo
"Generating $@"; \
54 sed
-e
's"--VERS--"$(SQLITE_VERSION)"' \
55 -e s
/--ENCODING--
/$(ENCODING
)/ \
56 $(SRCDIR
)/sqlite.h.in
> $@
59 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
63 include $(SRC
)/lib
/Makefile.targ