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# ident "%Z%%M% %I% %E% SMI" 24# 25# Copyright 1989-2002 Sun Microsystems, Inc. All rights reserved. 26# Use is subject to license terms. 27# 28# cmd/lp/filter/postscript/dpost/Makefile 29# 30 31include ../../../Makefile.lp 32 33PROG= dpost 34 35SRCS = dpost.c draw.c color.c pictures.c ps_include.c 36 37OBJS = $(SRCS:%.c=%.o) 38 39COMMONDIR= ../common 40 41COMMONOBJS = $(COMMONDIR)/glob.o \ 42 $(COMMONDIR)/misc.o \ 43 $(COMMONDIR)/request.o \ 44 $(COMMONDIR)/tempnam.o 45 46TXTS= README 47 48# dpost uses some floating point arithmetic, so if you're running on a system 49# without floating point hardware add the -f option to the definition of CFLAGS. 50 51ENCODING= 2 52CPPFLAGS = -DDFLTENCODING=$(ENCODING) \ 53 -I. -I$(COMMONDIR) \ 54 $(CPPFLAGS.master) 55 56POFILE = lp_filter_postscript_dpost.po 57 58.KEEP_STATE: 59 60all: $(TXTS) $(PROG) 61 62install: all $(ROOTLIBLPPOSTPROG) 63 64$(PROG): $(OBJS) $(COMMONOBJS) 65 $(LINK.c) -o $@ $(OBJS) $(COMMONOBJS) $(LDLIBS) 66 $(POST_PROCESS) 67 68$(COMMONOBJS): $$(@:%.o=%.c) 69 cd $(@D); $(MAKE) $(@F) 70 71ps_include.o: ps_include.h 72ps_include.h: ps_include.ps ps_include.awk 73 $(RM) $@; awk -f ps_include.awk ps_include.ps >$@ 74 75clean: 76 $(RM) $(OBJS) ps_include.h 77 78strip: 79 $(STRIP) $(PROG) 80 81lint: lint_SRCS 82 83include ../../../../Makefile.targ 84 85include ../Makefile.msg 86