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 29STABS_SRC = .. 30 31# 32# Define the module and object file sets. 33# 34STABS_PROG = stabs # name doesn't conflict with Makefile.master STABS 35PROG = stabs # name doesn't conflict with Makefile.master STABS 36STABS_SRCS = $(STABS_SRC)/main.c $(STABS_SRC)/stabs.c \ 37 $(STABS_SRC)/forth.c $(STABS_SRC)/genassym.c \ 38 $(STABS_SRC)/squander.c 39STABS_OBJS = $(STABS_SRCS:$(STABS_SRC)/%.c=%.o) 40LINTS = $(STABS_OBJS:%.o=%.ln) 41 42SRCS = $(STABS_SRCS) 43OBJECTS = $(STABS_OBJS) 44 45# 46# Include common rules. 47# 48CLEANFILES = $(OBJECTS) 49 50include ../../Makefile.tools 51 52FILEMODE = 555 53OWNER = root 54GROUP = bin 55 56CFLAGS += $(CCVERBOSE) 57 58INC_PATH = -I$(STABS_SRC) 59 60# 61# Default build targets. 62# 63.KEEP_STATE: 64 65.PARALLEL: $(STABS_OBJS) 66 67all: $(STABS_PROG) 68 69install: all .WAIT $(ROOTONBLDMACHPROG) 70 71lint: $(SRCS) 72 @$(LINT) $(LINTFLAGS) $(SRCS) 73 74clean: 75 $(RM) $(CLEANFILES) 76 77clean.lint: 78 $(RM) $(LINTS) 79 80$(STABS_PROG): $(STABS_OBJS) 81 $(LINK.c) -o $@ $(STABS_OBJS) -lm 82 $(POST_PROCESS) 83 84%.o: $(STABS_SRC)/%.c 85 $(COMPILE.c) $(INC_PATH) -o $@ -c $< 86 87include ../../Makefile.targ 88