1 0 stevel # 2 0 stevel # CDDL HEADER START 3 0 stevel # 4 0 stevel # The contents of this file are subject to the terms of the 5 1618 rie # Common Development and Distribution License (the "License"). 6 1618 rie # You may not use this file except in compliance with the License. 7 0 stevel # 8 0 stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 0 stevel # or http://www.opensolaris.org/os/licensing. 10 0 stevel # See the License for the specific language governing permissions 11 0 stevel # and limitations under the License. 12 0 stevel # 13 0 stevel # When distributing Covered Code, include this CDDL HEADER in each 14 0 stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 0 stevel # If applicable, add the following below this CDDL HEADER, with the 16 0 stevel # fields enclosed by brackets "[]" replaced with your own identifying 17 0 stevel # information: Portions Copyright [yyyy] [name of copyright owner] 18 0 stevel # 19 0 stevel # CDDL HEADER END 20 0 stevel # 21 1618 rie 22 0 stevel # 23 6635 ab196087 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 1618 rie # Use is subject to license terms. 25 0 stevel # 26 1618 rie # ident "%Z%%M% %I% %E% SMI" 27 0 stevel # 28 0 stevel 29 0 stevel %.o: ../common/%.c 30 1618 rie $(COMPILE.c) -o $@ $< 31 1618 rie $(POST_PROCESS_O) 32 1618 rie 33 1618 rie %32.o: ../common/%.c 34 1618 rie $(COMPILE.c) -o $@ $< 35 1618 rie $(POST_PROCESS_O) 36 1618 rie 37 1618 rie %64.o: ../common/%.c 38 1618 rie $(COMPILE.c) -D_ELF64 -o $@ $< 39 0 stevel $(POST_PROCESS_O) 40 0 stevel 41 0 stevel %.o: $(SGSTOOLS)/common/%.c 42 1618 rie $(COMPILE.c) -o $@ $< 43 0 stevel $(POST_PROCESS_O) 44 0 stevel 45 6635 ab196087 gen_struct_layout: ../common/gen_struct_layout.c 46 6635 ab196087 $(NATIVECC) $(NATIVECC_CFLAGS) $(CFLAGS) -o $@ \ 47 6635 ab196087 ../common/gen_struct_layout.c 48 6635 ab196087 49 6635 ab196087 $(PROG): $(OBJS) $(MAPFILE) gen_struct_layout 50 0 stevel $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 51 0 stevel $(POST_PROCESS) 52 0 stevel 53 0 stevel all: $(PROG) 54 0 stevel 55 0 stevel clean: 56 0 stevel $(RM) $(OBJS) $(CLEANFILES) 57 0 stevel 58 0 stevel delete: 59 0 stevel $(RM) $(PROG) 60 0 stevel 61 4538 damico package \ 62 4538 damico install: all $(VAR_SGSBINPROG) $(VAR_SGSCCSLINK) 63 0 stevel 64 1618 rie .PARALLEL: $(LINTOUT32) $(LINTOUT64) 65 1618 rie 66 1618 rie lint: $(LINTOUT32) $(LINTOUT64) $(SGSLINTOUT) 67 0 stevel 68 0 stevel include $(SRC)/cmd/Makefile.targ 69 0 stevel include $(SRC)/cmd/sgs/Makefile.targ 70 0 stevel 71 0 stevel # Derived source and header files (messaging). 72 0 stevel 73 0 stevel catalog: $(BLTMESG) 74 0 stevel 75 0 stevel chkmsg: $(SRCS) 76 0 stevel sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS) 77 0 stevel 78 0 stevel $(BLTDEFS) + \ 79 0 stevel $(BLTDATA) + \ 80 0 stevel $(BLTMESG): $(SGSMSGALL) 81 0 stevel $(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL) 82