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# 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 68include ../../../../Makefile.cmd 69 70SHELL = /bin/sh 71 72ROOTLIB = /usr/lib 73ROOTSHLIB = /usr/share/lib 74 75PROGROOT = $(ROOTLIB)/sgml 76 77TPTLIB = $(ROOTSHLIB)/sgml/locale/C/transpec 78REGEX_INC = -Itptregexp 79REGEX_LIB = tptregexp 80BINDIR = $(PROGROOT) 81DEFINES = -DDEF_TPT_LIB=\"$(TPTLIB)\" $(XDEFINES) 82 83#OPT = -O 84CFLAGS += $(OPT) $(REGEX_INC) $(DEFINES) 85LDFLAGS += $(OPT) 86REGEX = -L$(REGEX_LIB) -ltptregexp 87 88CFILES = main.c util.c info.c translate.c traninit.c tranvar.c tables.c \ 89 browse.c 90HFILES = general.h translate.h 91OBJ = main.o util.o info.o translate.o traninit.o tranvar.o tables.o \ 92 browse.o masterVersion.o 93PROGS = instant 94 95all: dotptregexp .WAIT $(PROGS) THIRDPARTYLICENSE 96 97dotptregexp: 98 cd tptregexp; $(MAKE) all 99 100instant: $(OBJ) 101 $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(REGEX) 102 $(POST_PROCESS) 103 cp $@ .. 104 105install: all 106 cp $(PROGS) $(BINDIR) 107 108 109Version: allVersion.o 110 111allVersion.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 117clean: _localclean 118 119_localclean: 120 rm -f $(OBJ) allVersion.o lint.out core 121 cd tptregexp; $(MAKE) clean 122 123clobber: clean _localclobber 124 125_localclobber: 126 rm -f $(PROGS) 127 cd tptregexp; $(MAKE) clobber 128 $(RM) THIRDPARTYLICENSE 129 130.PARALLEL: $(OBJ) 131 132# dependencies 133main.o: main.c general.h 134util.o: util.c general.h 135info.o: info.c general.h 136translate.o: translate.c general.h translate.h 137traninit.o: traninit.c general.h translate.h 138tranvar.o: tranvar.c general.h translate.h 139tables.o: tables.c general.h translate.h 140browse.o: browse.c general.h 141 142THIRDPARTYLICENSE: README 143 $(SED) -n -e '2d' -e '/# Copyright/,/# written authorization/p' \ 144 README > $@ 145