Makefile (9697ae98dd505d4c445dd4336b4defa36e722f79) | Makefile (8523fda3525b37e02f4d11efc8cf763bf08204ec) |
---|---|
1# 2# CDDL HEADER START 3# 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. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 5 unchanged lines hidden (view full) --- 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] 18# 19# CDDL HEADER END 20# 21# | 1# 2# CDDL HEADER START 3# 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. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 5 unchanged lines hidden (view full) --- 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] 18# 19# CDDL HEADER END 20# 21# |
22# Copyright 2008 Sun Microsystems, Inc. All rights reserved. | 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23# Use is subject to license terms. 24# | 23# Use is subject to license terms. 24# |
25# ident "%Z%%M% %I% %E% SMI" 26# | |
27 28PROG = auditd 29 30MANIFEST = auditd.xml 31SVCMETHOD = svc-auditd 32 | 25 26PROG = auditd 27 28MANIFEST = auditd.xml 29SVCMETHOD = svc-auditd 30 |
33include ../Makefile.cmd | 31include $(SRC)/cmd/Makefile.cmd |
34 35ROOTMANIFESTDIR = $(ROOTSVCSYSTEM) 36 37LIBBSM = $(SRC)/lib/libbsm/common | 32 33ROOTMANIFESTDIR = $(ROOTSVCSYSTEM) 34 35LIBBSM = $(SRC)/lib/libbsm/common |
36AUDITCONFIG = $(SRC)/cmd/auditconfig 37AUDITD = $(SRC)/cmd/auditd |
|
38 39CPPFLAGS += -D_REENTRANT | 38 39CPPFLAGS += -D_REENTRANT |
40CPPFLAGS += -I$(LIBBSM) | 40CPPFLAGS += -I$(LIBBSM) -I$(AUDITCONFIG) -I$(AUDITD) |
41 42LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 43LINTFLAGS += -m 44 | 41 42LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 43LINTFLAGS += -m 44 |
45LDLIBS += -lbsm -lsecdb | 45LDLIBS += -lbsm -lsecdb -lscf |
46 | 46 |
47OBJS= auditd.o doorway.o queue.o 48SRCS= $(OBJS:%.o=%.c) | 47OBJS = audit_scf_shared.o auditd.o doorway.o queue.o 48SRCS = $(AUDITCONFIG)/audit_scf_shared.c auditd.c doorway.c queue.c |
49 | 49 |
50POFILE = auditd.po 51MSGFILES = $(SRCS) 52 53 |
|
50.KEEP_STATE: 51 52all: $(PROG) 53 54install: all $(ROOTUSRSBINPROG) \ 55 $(ROOTMANIFEST) $(ROOTSVCMETHOD) 56 | 54.KEEP_STATE: 55 56all: $(PROG) 57 58install: all $(ROOTUSRSBINPROG) \ 59 $(ROOTMANIFEST) $(ROOTSVCMETHOD) 60 |
57$(PROG): $(OBJS) | 61$(PROG): $(SRCS) $(OBJS) |
58 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 59 $(POST_PROCESS) 60 | 62 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 63 $(POST_PROCESS) 64 |
65audit_scf%.o: 66 $(COMPILE.c) $(AUDITCONFIG)/$(@:%.o=%.c) 67 |
|
61lint: lint_SRCS 62 | 68lint: lint_SRCS 69 |
70$(POFILE): $(MSGFILES) 71 $(BUILDPO.msgfiles) 72 73#_msg: $(MSGDOMAINPOFILE) 74 |
|
63clean: | 75clean: |
64 $(RM) $(OBJS) | 76 $(RM) $(OBJS) |
65 66check: $(CHKMANIFEST) 67 | 77 78check: $(CHKMANIFEST) 79 |
68include ../Makefile.targ | 80include $(SRC)/cmd/Makefile.targ 81#include $(SRC)/Makefile.msg.targ 82BUILDPO.msgfiles = \ 83 $(RM) messages.po $(TEXT_DOMAIN).po; \ 84 $(TOUCH) $(TEXT_DOMAIN).po; \ 85 $(XGETTEXT) $(XGETFLAGS) $(MSGFILES); \ 86 $(SED) -e '/^\# msgid/,/^\# msgstr/d' -e '/^domain/d' \ 87 -e '/^\#$$/d' -e '/^\#, /d' \ 88 messages.po $(TEXT_DOMAIN).po > $(POFILE); \ 89 $(RM) messages.po $(TEXT_DOMAIN).po |