169b1fd3fSRichard Lowe# 269b1fd3fSRichard Lowe# CDDL HEADER START 369b1fd3fSRichard Lowe# 469b1fd3fSRichard Lowe# The contents of this file are subject to the terms of the 569b1fd3fSRichard Lowe# Common Development and Distribution License (the "License"). 669b1fd3fSRichard Lowe# You may not use this file except in compliance with the License. 769b1fd3fSRichard Lowe# 869b1fd3fSRichard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 969b1fd3fSRichard Lowe# or http://www.opensolaris.org/os/licensing. 1069b1fd3fSRichard Lowe# See the License for the specific language governing permissions 1169b1fd3fSRichard Lowe# and limitations under the License. 1269b1fd3fSRichard Lowe# 1369b1fd3fSRichard Lowe# When distributing Covered Code, include this CDDL HEADER in each 1469b1fd3fSRichard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1569b1fd3fSRichard Lowe# If applicable, add the following below this CDDL HEADER, with the 1669b1fd3fSRichard Lowe# fields enclosed by brackets "[]" replaced with your own identifying 1769b1fd3fSRichard Lowe# information: Portions Copyright [yyyy] [name of copyright owner] 1869b1fd3fSRichard Lowe# 1969b1fd3fSRichard Lowe# CDDL HEADER END 2069b1fd3fSRichard Lowe# 2169b1fd3fSRichard Lowe# Copyright (c) 2018, Joyent, Inc. 2269b1fd3fSRichard Lowe# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 2369b1fd3fSRichard Lowe 2469b1fd3fSRichard Lowe# 2569b1fd3fSRichard Lowe# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 2669b1fd3fSRichard Lowe# Use is subject to license terms. 2769b1fd3fSRichard Lowe# 2869b1fd3fSRichard Lowe 2969b1fd3fSRichard Lowe# 3069b1fd3fSRichard Lowe# Makefile to support tools used for linker development: 3169b1fd3fSRichard Lowe# 3269b1fd3fSRichard Lowe# o sgsmsg creates message headers/arrays/catalogs (a native tool). 3369b1fd3fSRichard Lowe# 3469b1fd3fSRichard Lowe# Note, these tools are not part of the product. 3569b1fd3fSRichard Lowe# 3669b1fd3fSRichard Lowe 3769b1fd3fSRichard Loweinclude ../../Makefile.tools 38*9b9d39d2SRichard Loweinclude $(SRC)/cmd/sgs/Makefile.com 3969b1fd3fSRichard Loweinclude $(SRC)/cmd/Makefile.cmd 40*9b9d39d2SRichard Loweinclude ../Makefile.com 4169b1fd3fSRichard Lowe 4269b1fd3fSRichard LowePROG= sgsmsg 4369b1fd3fSRichard Lowe 44*9b9d39d2SRichard LoweSRCDIR= $(SRC)/tools/sgs/sgsmsg 45*9b9d39d2SRichard Lowe 4669b1fd3fSRichard LoweMAN1ONBLDFILES = sgsmsg.1onbld 4769b1fd3fSRichard Lowe$(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644 4869b1fd3fSRichard Lowe 4969b1fd3fSRichard LoweOBJS= assfail.o \ 5069b1fd3fSRichard Lowe avl.o \ 5169b1fd3fSRichard Lowe findprime.o \ 5269b1fd3fSRichard Lowe sgsmsg.o \ 5369b1fd3fSRichard Lowe string_table.o 5469b1fd3fSRichard Lowe 5569b1fd3fSRichard LoweFILEMODE= 0755 5669b1fd3fSRichard Lowe 575801b0f0SToomas SoomeNATIVE_LIBS += libc.so 58252adeb3SRichard LoweCSTD = $(CSTD_GNU99) 5969b1fd3fSRichard Lowe 6069b1fd3fSRichard Lowe# not linted 6169b1fd3fSRichard LoweSMATCH= off 6269b1fd3fSRichard Lowe 63*9b9d39d2SRichard Loweinclude $(SRC)/Makefile.native 64*9b9d39d2SRichard Lowe 65*9b9d39d2SRichard Lowe.KEEP_STATE: 66*9b9d39d2SRichard Lowe 6769b1fd3fSRichard Loweall: $(PROG) 6869b1fd3fSRichard Lowe 6969b1fd3fSRichard Loweinstall: $(ROOTONBLDMACHPROG) $(ROOTONBLDMAN1ONBLDFILES) 7069b1fd3fSRichard Lowe 7169b1fd3fSRichard Lowe$(PROG): $(OBJS) 7269b1fd3fSRichard Lowe $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 7369b1fd3fSRichard Lowe 7469b1fd3fSRichard Lowe%.o: $(SGSCOMMON)/%.c 75*9b9d39d2SRichard Lowe $(COMPILE.c) -c $< 7669b1fd3fSRichard Lowe 7769b1fd3fSRichard Loweavl.o: $(SRC)/common/avl/avl.c 78*9b9d39d2SRichard Lowe $(COMPILE.c) -c $(SRC)/common/avl/avl.c -o $@ 7969b1fd3fSRichard Lowe 8069b1fd3fSRichard Loweclean: 8169b1fd3fSRichard Lowe $(RM) $(OBJS) 8269b1fd3fSRichard Lowe 8369b1fd3fSRichard Loweinclude $(SRC)/cmd/Makefile.targ 84