Mercurial > illumos > onarm
annotate usr/src/cmd/man/src/util/instant.src/Makefile @ 4:1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Mon, 31 Aug 2009 14:38:03 +0900 |
parents | c9caec207d52 |
children |
rev | line source |
---|---|
0 | 1 # |
2 # Copyright 2007 Sun Microsystems, Inc. All rights reserved. | |
3 # Use is subject to license terms. | |
4 # | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
5 # ident "%Z%%M% %I% %E% SMI" |
0 | 6 # |
7 # Copyright 1993 Open Software Foundation, Inc., Cambridge, Massachusetts. | |
8 # All rights reserved. | |
9 # | |
10 # Copyright (c) 1994 | |
11 # Open Software Foundation, Inc. | |
12 # | |
13 # Permission is hereby granted to use, copy, modify and freely distribute | |
14 # the software in this file and its documentation for any purpose without | |
15 # fee, provided that the above copyright notice appears in all copies and | |
16 # that both the copyright notice and this permission notice appear in | |
17 # supporting documentation. Further, provided that the name of Open | |
18 # Software Foundation, Inc. ("OSF") not be used in advertising or | |
19 # publicity pertaining to distribution of the software without prior | |
20 # written permission from OSF. OSF makes no representations about the | |
21 # suitability of this software for any purpose. It is provided "as is" | |
22 # without express or implied warranty. | |
23 # | |
24 # Copyright (c) 1996 X Consortium | |
25 # Copyright (c) 1996 Dalrymple Consulting | |
26 # | |
27 # Permission is hereby granted, free of charge, to any person obtaining a copy | |
28 # of this software and associated documentation files (the "Software"), to deal | |
29 # in the Software without restriction, including without limitation the rights | |
30 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
31 # copies of the Software, and to permit persons to whom the Software is | |
32 # furnished to do so, subject to the following conditions: | |
33 # | |
34 # The above copyright notice and this permission notice shall be included in | |
35 # all copies or substantial portions of the Software. | |
36 # | |
37 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
38 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
39 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
40 # X CONSORTIUM OR DALRYMPLE CONSULTING BE LIABLE FOR ANY CLAIM, DAMAGES OR | |
41 # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
42 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
43 # OTHER DEALINGS IN THE SOFTWARE. | |
44 # | |
45 # Except as contained in this notice, the names of the X Consortium and | |
46 # Dalrymple Consulting shall not be used in advertising or otherwise to | |
47 # promote the sale, use or other dealings in this Software without prior | |
48 # written authorization. | |
49 # | |
50 # | |
51 # For building 'instant'. | |
52 # | |
53 # J.Bowe, 1993 | |
54 # | |
55 # $Header: /usr/src/docbook-to-man/Instant/RCS/Makefile,v 1.10 1996/06/15 22:49:42 fld Exp $ | |
56 # | |
57 # This assumes you have the (tpt)regexp package (includes and library) | |
58 # available. | |
59 # | |
60 # Some things you could set at your site. | |
61 # XDEFINES = ... # for extra defines | |
62 # REGEX_INC = -I../tptregexp # should be here with release | |
63 # REGEX_LIB = ../lib/tptregexp # assumes you built it there | |
64 # BINDIR = /usr/local/bin # where you keep your programs | |
65 # (You should set DEF_TPT_LIB to something, or set it in general.h. | |
66 # At OSF we use the default in that file.) | |
67 | |
68 include ../../../../Makefile.cmd | |
69 | |
70 SHELL = /bin/sh | |
71 | |
72 ROOTLIB = /usr/lib | |
73 ROOTSHLIB = /usr/share/lib | |
74 | |
75 PROGROOT = $(ROOTLIB)/sgml | |
76 | |
77 TPTLIB = $(ROOTSHLIB)/sgml/locale/C/transpec | |
78 REGEX_INC = -Itptregexp | |
79 REGEX_LIB = tptregexp | |
80 BINDIR = $(PROGROOT) | |
81 DEFINES = -DDEF_TPT_LIB=\"$(TPTLIB)\" $(XDEFINES) | |
82 | |
83 #OPT = -O | |
84 CFLAGS += $(OPT) $(REGEX_INC) $(DEFINES) | |
85 LDFLAGS += $(OPT) | |
86 REGEX = -L$(REGEX_LIB) -ltptregexp | |
87 | |
88 CFILES = main.c util.c info.c translate.c traninit.c tranvar.c tables.c \ | |
89 browse.c | |
90 HFILES = general.h translate.h | |
91 OBJ = main.o util.o info.o translate.o traninit.o tranvar.o tables.o \ | |
92 browse.o masterVersion.o | |
93 PROGS = instant | |
94 | |
95 all: dotptregexp .WAIT $(PROGS) THIRDPARTYLICENSE | |
96 | |
97 dotptregexp: | |
98 cd tptregexp; $(MAKE) all | |
99 | |
100 instant: $(OBJ) | |
101 $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(REGEX) | |
102 $(POST_PROCESS) | |
103 cp $@ .. | |
104 | |
105 install: all | |
106 cp $(PROGS) $(BINDIR) | |
107 | |
108 | |
109 Version: allVersion.o | |
110 | |
111 allVersion.c: $(HFILES) $(CFILES) Makefile | |
112 co -l allVersion.c | |
113 makeVersionFile $(HFILES) $(CFILES) Makefile > allVersion.c | |
114 ci -u -m"new master version number" allVersion.c | |
115 makeVersionFile -n instant allVersion.c > masterVersion.c | |
116 | |
117 clean: _localclean | |
118 | |
119 _localclean: | |
120 rm -f $(OBJ) allVersion.o lint.out core | |
121 cd tptregexp; $(MAKE) clean | |
122 | |
123 clobber: clean _localclobber | |
124 | |
125 _localclobber: | |
126 rm -f $(PROGS) | |
127 cd tptregexp; $(MAKE) clobber | |
128 $(RM) THIRDPARTYLICENSE | |
129 | |
130 .PARALLEL: $(OBJ) | |
131 | |
132 # dependencies | |
133 main.o: main.c general.h | |
134 util.o: util.c general.h | |
135 info.o: info.c general.h | |
136 translate.o: translate.c general.h translate.h | |
137 traninit.o: traninit.c general.h translate.h | |
138 tranvar.o: tranvar.c general.h translate.h | |
139 tables.o: tables.c general.h translate.h | |
140 browse.o: browse.c general.h | |
141 | |
142 THIRDPARTYLICENSE: README | |
143 $(SED) -n -e '2d' -e '/# Copyright/,/# written authorization/p' \ | |
144 README > $@ |