1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28# ucblib/libtermcap/Makefile.com 29# 30 31LIBRARY= libtermcap.a 32VERS= .1 33 34OBJECTS= termcap.o \ 35 tgoto.o \ 36 tputs.o 37 38# include library definitions 39include $(SRC)/lib/Makefile.lib 40 41ROOTLIBDIR= $(ROOT)/usr/ucblib 42ROOTLIBDIR64= $(ROOT)/usr/ucblib/$(MACH64) 43 44MAPFILE= $(MAPDIR)/mapfile 45SRCS= $(OBJECTS:%.o=../%.c) 46 47LIBS = $(DYNLIB) $(LINTLIB) 48 49LINTSRC= $(LINTLIB:%.ln=%) 50ROOTLINTDIR= $(ROOTLIBDIR) 51ROOTLINTDIR64= $(ROOTLIBDIR)/$(MACH64) 52ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) 53ROOTLINT64= $(LINTSRC:%=$(ROOTLINTDIR64)/%) 54 55# install rule for lint source file target 56$(ROOTLINTDIR)/%: ../% 57 $(INS.file) 58$(ROOTLINTDIR64)/%: ../% 59 $(INS.file) 60 61$(LINTLIB):= SRCS=../llib-ltermcap 62 63CFLAGS += $(CCVERBOSE) 64CFLAGS64 += $(CCVERBOSE) 65DYNFLAGS += 66DYNFLAGS32 = -M$(MAPFILE) 67DYNFLAGS64 = -M$(MAPFILE) 68LDLIBS += -lc 69 70DEFS= -DCM_N -DCM_GT -DCM_B -DCM_D 71CPPFLAGS = $(DEFS) -I$(ROOT)/usr/ucbinclude $(CPPFLAGS.master) 72 73.KEEP_STATE: 74 75all: $(LIBS) 76 77lint: lintcheck 78 79$(DYNLIB): $(MAPFILE) 80 81$(MAPFILE): 82 @cd $(MAPDIR); $(MAKE) mapfile 83 84# 85# Include library targets 86# 87include $(SRC)/lib/Makefile.targ 88 89objs/%.o pics/%.o: ../%.c 90 $(COMPILE.c) -o $@ $< 91 $(POST_PROCESS_O) 92