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# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29TPROG= t4014 t300 t300s t450 30PROG= $(TPROG) vplot 31SHFILES= tplot 32 33# include common definitions 34include ../Makefile.cmd 35 36CLOBBERFILES += $(SHFILES) 37 38# conditional assignments 39t% := LDLIBS += -l$(@F:t%=%) 40t% := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB) 41t% := LDFLAGS += $(MAPFILES:%=-M%) 42 43.KEEP_STATE: 44 45all: $(PROG) $(SHFILES) 46 47$(TPROG): driver.o $$(MAPFILES) 48 $(LINK.c) -o $@ driver.o $(LDLIBS) 49 $(POST_PROCESS) 50 51$(ROOTSHFILES): $(SHFILES) 52 53vplot: vplot.o banner.o 54 $(LINK.c) -o $@ vplot.o banner.o $(LDLIBS) 55 $(POST_PROCESS) 56 57install: $(ROOTLIBPROG) $(ROOTSHFILES) 58 59clean: 60 $(RM) driver.o vplot.o banner.o 61 62lint: 63 $(LINT.c) driver.c $(LDLIBS) -l4014 64 $(LINT.c) driver.c $(LDLIBS) -l300 65 $(LINT.c) driver.c $(LDLIBS) -l300s 66 $(LINT.c) driver.c $(LDLIBS) -l450 67 $(LINT.c) vplot.c banner.c $(LDLIBS) 68 69# include common targets 70include ../Makefile.targ 71