Makefile revision 45916cd2fec6e79bca5dee0421bd39e3c2910d1e
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
80383d03604b92a452564592e84c2bf831077a41Automatic Updater# CDDL HEADER START
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# You may not use this file except in compliance with the License.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# or http://www.opensolaris.org/os/licensing.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews#
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXLATEDIR = $(SRC)/lib/libbsm/common
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic UpdaterPROG = praudit
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSRCS = format.c main.c token.c toktable.c printaudit.c prio.c $(XLATEDIR)/adt_xlate.c
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinOBJS = format.o main.o token.o toktable.o printaudit.o prio.o adt_xlate.o
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude ../Makefile.cmd
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsTEXT_DOMAIN=SUNW_OST_OSCMD
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterPOFILE = praudit.po
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterPOFILES = $(OBJS:.o=.po)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXGETFLAGS += -a -x praudit.xcl
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterCPPFLAGS += -D_PRAUDIT -I$(SRC)/lib/libbsm/common
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterCPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterLAZYLIBS = $(ZLAZYLOAD) -ltsol $(ZNOLAZYLOAD)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinlint := LAZYLIBS = -ltsol
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLDLIBS += -lbsm -lnsl -lpam $(LAZYLIBS)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein.KEEP_STATE:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinall: $(PROG)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterinstall: all $(ROOTUSRSBINPROG)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater$(PROG): $(OBJS)
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater $(CC) -o $(PROG) $(OBJS) $(LDFLAGS) $(LDLIBS)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(POST_PROCESS)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updateradt_xlate.o: $(XLATEDIR)/adt_xlate.c
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(COMPILE.c) $(XLATEDIR)/adt_xlate.c
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater$(POFILE): $(POFILES)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(RM) -f $@
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater $(CAT) $(POFILES) > $@
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater# has strings but doesn't use gettext
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinadt_xlate.po: $(XLATEDIR)/adt_xlate.c
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(RM) adt_xlate.po
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(XGETTEXT) $(XGETFLAGS) $(XLATEDIR)/adt_xlate.c
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater $(SED) "/^domain/d" < messages.po > adt_xlate.po
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater $(RM) messages.po
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinlint: lint_SRCS
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterclean:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(RM) -f $(OBJS) $(PROG) $(POFILES) $(POFILE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude ../Makefile.targ
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt