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