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 (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20 21 22# 23# 24# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25# Use is subject to license terms. 26# 27# ident "%Z%%M% %I% %E% SMI" 28# 29# cmd/lp/lib/lp/Makefile 30# 31 32LIBRARY = liblp.a 33 34OBJECTS = Syscalls.o \ 35 Sys_malloc.o \ 36 addlist.o \ 37 addstring.o \ 38 appendlist.o \ 39 alerts.o \ 40 charset.o \ 41 cs_strcmp.o \ 42 cs_strncmp.o \ 43 dellist.o \ 44 dashos.o \ 45 dirs.o \ 46 duplist.o \ 47 files.o \ 48 freelist.o \ 49 getlist.o \ 50 getname.o \ 51 getpaths.o \ 52 getspooldir.o \ 53 isterminfo.o \ 54 joinlist.o \ 55 lenlist.o \ 56 lp_errno.o \ 57 makepath.o \ 58 makestr.o \ 59 mergelist.o \ 60 next.o \ 61 printlist.o \ 62 sdn.o \ 63 sprintlist.o \ 64 searchlist.o \ 65 set_charset.o \ 66 set_pitch.o \ 67 set_size.o \ 68 sop.o \ 69 strip.o \ 70 syntax.o \ 71 tidbit.o \ 72 tinames.o \ 73 tx.o \ 74 wherelist.o \ 75 which.o 76 77 78include ../../../../lib/Makefile.lib 79include ../../Makefile.lp 80 81# Specifically request the construction of a static library. 82# This library is not installed in the proto area. 83LIBS = $(LIBRARY) 84 85CPPFLAGS = -I../../include $(CPPFLAGS.master) $(C_PICFLAGS) 86 87POFILE = lp_lib_lp.po 88 89.KEEP_STATE: 90 91all install : $(LIBS) 92 93include ../../../../lib/Makefile.targ 94 95CLEANFILES += llib-llp.ln 96LINTFLAGS = -nvx 97SRCS= $(OBJECTS:%.o=%.c) 98# lint does not take $(C_PICFLAGS) 99LINT_CPPFLAGS = -I../../include $(CPPFLAGS.master) 100 101lint: lintlib 102 $(LINT) $(LINTFLAGS) $(LINT_CPPFLAGS) $(SRCS) 103 104lintlib: 105 $(LINT) $(LINTFLAGS) $(LINT_CPPFLAGS) -o lp llib-llp 106 107include ../Makefile.msg 108