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.
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.
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]
21 # Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
27 $(OBJDIR)/%.o: ../common/%.c
35 $(ROOTONLDBIN)/$(MACH64)/%: %
39 $(OBJDIR)/main.o: gram.h
41 gram.c + gram.h: ../common/gram.y
42 $(YACC) -d ../common/gram.y
46 lex.c: ../common/lex.l
47 $(LEX) ../common/lex.l
51 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
57 simp: ../tests/simp.c libsub.so.1
58 $(LINK.c) $(LDFLAG) -o $@ ../tests/simp.c -R. ./libsub.so.1
60 libsub.so.1: ../tests/sub.c
61 $(LINK.c) $(LDFLAG) -o $@ -G -Kpic -hlibsub.so.1 ../tests/sub.c
64 # RDB sample runs & tests
67 ./rdb -f ../tests/loadmaps ./simp
70 ./rdb -f ../tests/breaks ./simp
73 ./rdb -f ../tests/steps ./simp
75 test-plt_skip: simp FRC
76 ./rdb -f ../tests/plt_skip ./simp
78 test-sparc-regs: simp FRC
79 ./rdb -f ../tests/test-sparc-regs simp
81 test-object-padding: simp FRC
82 ./rdb -f ../tests/object_padding_maps simp
88 $(RM) $(OBJS) $(CLEANFILES)
98 $(LINT.c) $(SRCS) > lint.out 2>&1
100 include $(SRC)/cmd/sgs/Makefile.targ