Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# The contents of this file are subject to the terms of the
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# Common Development and Distribution License (the "License").
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You may not use this file except in compliance with the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# CDDL HEADER END
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Use is subject to license terms.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLIBRARY= libtnf.a
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonVERS= .1
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonOBJECTS= $(MACH)dep.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington ref.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington abi.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington util.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington info.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington datum.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington record.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington scalar.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington array.o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein struct.o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein type.o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein error.o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein access.o \
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews reader.o
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../Makefile.lib
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSRCDIR = .
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTEXT_DOMAIN= SUNW_OST_OSLIB
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXGETFLAGS= -a
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsPOFILE= $(LIBRARY:%.a=%.po)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinPOFILES= _error.po
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSED= sed
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonGREP= grep
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLIBS= $(DYNLIB)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLDLIBS += -lc
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonHDRS= tnf.h
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonROOTHDRDIR= $(ROOT)/usr/include/tnf
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark AndrewsROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCHECKHDRS= $(HDRS:%.h=%.check)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington$(ROOTHDRS) := FILEMODE = 0644
cc3aafe737334d444781f8a34ffaf459e075bb9aMark AndrewsCHECKHDRS = $(HDRS:%.h=%.check)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington$(ROOTHDRS) := FILEMODE = 644
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCPPFLAGS += -D_DATUM_MACROS -D_REENTRANT
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLINTFLAGS += -y
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCERRWARN += -_gcc=-Wno-unused-variable
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington.KEEP_STATE:
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinall: $(LIBS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrewsinstall: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninstall_h: $(ROOTHDRDIR) $(ROOTHDRS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonlint:
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(LINT.c) $(SRCS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoncheck: $(CHECKHDRS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington$(ROOTLIBDIR) $(ROOTHDRDIR):
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(INS.dir)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(ROOTHDRDIR)/% : %
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(INS.file)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsASFLAGS= $(AS_PICFLAGS) -P -D_SYS_SYS_S -D_LOCORE -D_ASM -DPIC -DLOCORE $(CPPFLAGS)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsBUILD.s= $(AS) $(ASFLAGS) $< -o $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinpics/%.o: ./%.s
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(BUILD.s)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews $(POST_PROCESS_O)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinobjs/%.o: ./%.s
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(BUILD.s)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(POST_PROCESS_O)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein_msg: $(MSGDOMAIN) $(POFILE)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(RM) $(MSGDOMAIN)/$(POFILE)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(CP) $(POFILE) $(MSGDOMAIN)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington$(POFILE): $(POFILES)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CAT) $(POFILES) > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(POFILES):
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) messages.po
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]*`
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) messages.po
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../Makefile.targ
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein