man: loader related manual fixes
[unleashed.git] / usr / src / lib / libsqlite / Makefile
bloba197a94394e7e237cd8da506e6fe1064f4415e6a
2 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
6 SUBDIRS = $(MACH)
8 SQLITE_VERSION = 2.8.15-repcached
10 VERS = .1
12 include $(SRC)/lib/Makefile.lib
14 ENCODING = ISO8859
16 SRCDIR= src
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
24 .KEEP_STATE:
26 all := TARGET= all
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)
36 clobber: $(SUBDIRS)
38 $(ROOTHDRDIR):
39 $(INS.dir)
41 $(ROOTHDRDIR)/%: % $(ROOTHDRDIR)
42 $(INS.file)
44 install_h: sqlite.h $(ROOTHDRS)
46 check:
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 > $@
57 $(SUBDIRS): FRC
58 @cd $@; pwd; $(MAKE) $(TARGET)
60 FRC:
62 include $(SRC)/lib/Makefile.targ