1*20c1c355SRod Evans# 2*20c1c355SRod Evans# CDDL HEADER START 3*20c1c355SRod Evans# 4*20c1c355SRod Evans# The contents of this file are subject to the terms of the 5*20c1c355SRod Evans# Common Development and Distribution License (the "License"). 6*20c1c355SRod Evans# You may not use this file except in compliance with the License. 7*20c1c355SRod Evans# 8*20c1c355SRod Evans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*20c1c355SRod Evans# or http://www.opensolaris.org/os/licensing. 10*20c1c355SRod Evans# See the License for the specific language governing permissions 11*20c1c355SRod Evans# and limitations under the License. 12*20c1c355SRod Evans# 13*20c1c355SRod Evans# When distributing Covered Code, include this CDDL HEADER in each 14*20c1c355SRod Evans# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*20c1c355SRod Evans# If applicable, add the following below this CDDL HEADER, with the 16*20c1c355SRod Evans# fields enclosed by brackets "[]" replaced with your own identifying 17*20c1c355SRod Evans# information: Portions Copyright [yyyy] [name of copyright owner] 18*20c1c355SRod Evans# 19*20c1c355SRod Evans# CDDL HEADER END 20*20c1c355SRod Evans# 21*20c1c355SRod Evans# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved. 22*20c1c355SRod Evans 23*20c1c355SRod Evans$(OBJDIR)/%.o: %.c 24*20c1c355SRod Evans $(COMPILE.c) $< -o $@ 25*20c1c355SRod Evans $(POST_PROCESS_O) 26*20c1c355SRod Evans 27*20c1c355SRod Evans$(OBJDIR)/%.o: ../common/%.c 28*20c1c355SRod Evans $(COMPILE.c) $< -o $@ 29*20c1c355SRod Evans $(POST_PROCESS_O) 30*20c1c355SRod Evans 31*20c1c355SRod Evans# DEMO DELETE START 32*20c1c355SRod Evans$(ROOTONLDBIN)/%: % 33*20c1c355SRod Evans $(INS.file) 34*20c1c355SRod Evans 35*20c1c355SRod Evans$(ROOTONLDBIN)/$(MACH64)/%: % 36*20c1c355SRod Evans $(INS.file) 37*20c1c355SRod Evans# DEMO DELETE END 38*20c1c355SRod Evans 39*20c1c355SRod Evans$(OBJDIR)/main.o: gram.h 40*20c1c355SRod Evans 41*20c1c355SRod Evansgram.c + gram.h: ../common/gram.y 42*20c1c355SRod Evans $(YACC) -d ../common/gram.y 43*20c1c355SRod Evans $(MV) y.tab.c gram.c 44*20c1c355SRod Evans $(MV) y.tab.h gram.h 45*20c1c355SRod Evans 46*20c1c355SRod Evanslex.c: ../common/lex.l 47*20c1c355SRod Evans $(LEX) ../common/lex.l 48*20c1c355SRod Evans $(MV) lex.yy.c lex.c 49*20c1c355SRod Evans 50*20c1c355SRod Evans$(PROG): $(OBJS) 51*20c1c355SRod Evans $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 52*20c1c355SRod Evans# DEMO DELETE START 53*20c1c355SRod Evans $(POST_PROCESS) 54*20c1c355SRod Evans# DEMO DELETE END 55*20c1c355SRod Evans 56*20c1c355SRod Evans 57*20c1c355SRod Evanssimp: ../tests/simp.c libsub.so.1 58*20c1c355SRod Evans $(LINK.c) $(LDFLAG) -o $@ ../tests/simp.c -R. ./libsub.so.1 59*20c1c355SRod Evans 60*20c1c355SRod Evanslibsub.so.1: ../tests/sub.c 61*20c1c355SRod Evans $(LINK.c) $(LDFLAG) -o $@ -G -Kpic -hlibsub.so.1 ../tests/sub.c 62*20c1c355SRod Evans 63*20c1c355SRod Evans# 64*20c1c355SRod Evans# RDB sample runs & tests 65*20c1c355SRod Evans# 66*20c1c355SRod Evanstest-maps: simp FRC 67*20c1c355SRod Evans ./rdb -f ../tests/loadmaps ./simp 68*20c1c355SRod Evans 69*20c1c355SRod Evanstest-breaks: simp FRC 70*20c1c355SRod Evans ./rdb -f ../tests/breaks ./simp 71*20c1c355SRod Evans 72*20c1c355SRod Evanstest-steps: simp FRC 73*20c1c355SRod Evans ./rdb -f ../tests/steps ./simp 74*20c1c355SRod Evans 75*20c1c355SRod Evanstest-plt_skip: simp FRC 76*20c1c355SRod Evans ./rdb -f ../tests/plt_skip ./simp 77*20c1c355SRod Evans 78*20c1c355SRod Evanstest-sparc-regs: simp FRC 79*20c1c355SRod Evans ./rdb -f ../tests/test-sparc-regs simp 80*20c1c355SRod Evans 81*20c1c355SRod Evanstest-object-padding: simp FRC 82*20c1c355SRod Evans ./rdb -f ../tests/object_padding_maps simp 83*20c1c355SRod Evans 84*20c1c355SRod Evans$(OBJDIR): 85*20c1c355SRod Evans -@mkdir -p $(OBJDIR) 86*20c1c355SRod Evans 87*20c1c355SRod Evansclean: FRC 88*20c1c355SRod Evans $(RM) $(OBJS) $(CLEANFILES) 89*20c1c355SRod Evans 90*20c1c355SRod Evansclobber: clean FRC 91*20c1c355SRod Evans $(RM) $(PROG) 92*20c1c355SRod Evans 93*20c1c355SRod EvansFRC: 94*20c1c355SRod Evans 95*20c1c355SRod Evans# DEMO DELETE START 96*20c1c355SRod Evans 97*20c1c355SRod Evans$(LINTOUT): $(SRCS) 98*20c1c355SRod Evans $(LINT.c) $(SRCS) > lint.out 2>&1 99*20c1c355SRod Evans 100*20c1c355SRod Evansinclude $(SRC)/cmd/sgs/Makefile.targ 101*20c1c355SRod Evans# DEMO DELETE END 102