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