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# cmd/lp/lib/lp/Makefile 29# 30 31LIBRARY = liblp.a 32 33OBJECTS = Syscalls.o \ 34 Sys_malloc.o \ 35 addlist.o \ 36 addstring.o \ 37 appendlist.o \ 38 alerts.o \ 39 charset.o \ 40 cs_strcmp.o \ 41 cs_strncmp.o \ 42 dellist.o \ 43 dashos.o \ 44 dirs.o \ 45 duplist.o \ 46 files.o \ 47 freelist.o \ 48 getlist.o \ 49 getname.o \ 50 getpaths.o \ 51 getspooldir.o \ 52 isterminfo.o \ 53 joinlist.o \ 54 lenlist.o \ 55 lp_errno.o \ 56 makepath.o \ 57 makestr.o \ 58 mergelist.o \ 59 next.o \ 60 printlist.o \ 61 sdn.o \ 62 sprintlist.o \ 63 searchlist.o \ 64 set_charset.o \ 65 set_pitch.o \ 66 set_size.o \ 67 sop.o \ 68 strip.o \ 69 syntax.o \ 70 tidbit.o \ 71 tinames.o \ 72 wherelist.o \ 73 which.o 74 75 76include ../../../../lib/Makefile.lib 77include ../../Makefile.lp 78 79# Specifically request the construction of a static library. 80# This library is not installed in the proto area. 81LIBS = $(LIBRARY) 82 83CPPFLAGS = -I../../include $(CPPFLAGS.master) $(C_PICFLAGS) 84 85POFILE = lp_lib_lp.po 86 87.KEEP_STATE: 88 89all install : $(LIBS) 90 91include ../../../../lib/Makefile.targ 92 93CLEANFILES += llib-llp.ln 94LINTFLAGS = -nvx 95SRCS= $(OBJECTS:%.o=%.c) 96# lint does not take $(C_PICFLAGS) 97LINT_CPPFLAGS = -I../../include $(CPPFLAGS.master) 98 99lint: lintlib 100 $(LINT) $(LINTFLAGS) $(LINT_CPPFLAGS) $(SRCS) 101 102lintlib: 103 $(LINT) $(LINTFLAGS) $(LINT_CPPFLAGS) -o lp llib-llp 104 105include ../Makefile.msg 106