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# Copyright 1989-2002 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# cmd/lp/filter/postscript/font/Makefile
26#
27
28include			../../../Makefile.lp
29
30PROG =			makedev
31
32SRCS =			makedev.c
33
34OBJS =			$(SRCS:%.c=%.o)
35
36SUBDIRS =		devpost
37
38COMMONDIR =		../common
39ROOTLIBFONT =		$(ROOTLIB)/font
40ROOTLIBFONTPROG =	$(PROG:%=$(ROOTLIBFONT)/%)
41
42CPPFLAGS =		-I$(COMMONDIR) $(CPPFLAGS.master)
43
44POFILE =	lp_filter_postscript_font.po
45
46NATIVEDIR =		native
47NATIVEPROG =		$(NATIVEDIR)/$(PROG)
48NATIVE_LIBS +=		libc.so
49$(NATIVEPROG) :=	CC=$(NATIVECC)
50$(NATIVEPROG) :=	CFLAGS=$(NATIVE_CFLAGS)
51$(NATIVEPROG) :=	LDLIBS=
52$(NATIVEPROG) :=	CPPFLAGS.master=
53
54.KEEP_STATE:
55
56all :			$(PROG) $(NATIVEPROG) $(SUBDIRS)
57
58install :		$(PROG) $(ROOTLIBFONTPROG) $(SUBDIRS)
59
60clean :			$(SUBDIRS)
61			$(RM) $(OBJS)
62
63clobber :		$(SUBDIRS) clean
64			$(RM) $(PROG) $(NATIVEPROG) $(CLOBBERFILES)
65
66strip:
67			$(STRIP) $(PROG)
68
69lint:
70			$(LINT.c) $(SRCS)
71
72include		../Makefile.msg
73
74$(NATIVEPROG) :		$(NATIVEDIR) $(SRCS)
75			$(LINK.c) -o $@ $(SRCS) $(LDLIBS)
76
77$(NATIVEDIR) :
78			-@mkdir -p $@
79
80$(ROOTLIBFONT)/%:	%
81			$(INS.file)
82
83$(PROG) :		$(SRCS)
84			$(LINK.c) -o $@ $(SRCS) $(LDLIBS)
85			$(POST_PROCESS)
86
87$(SUBDIRS):		FRC
88			@cd $@; pwd; $(MAKE) $(TARGET)
89
90FRC:
91