dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / krb5 / kproplog / Makefile
blob842d8fc91e9a04b7550cfd42607a571cccd87685
2 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
6 PROG = kproplog
8 OBJS = kproplog.o
9 DERIVED_OBJS = iprop_xdr.o
11 SRCS= $(OBJS:.o=.c)
12 SRCS+= $(DERIVED_OBJS:.o=.c)
14 RSRC= kproplog.c
16 # Definitions needed to rpcgen iprop-related files
17 ISRC= iprop.h iprop_xdr.c
18 KRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
19 CMD= grep -v "usr/src/cmd/krb5/iprop" > $@
21 include ../../Makefile.cmd
22 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
24 TEXT_DOMAIN = SUNW_OST_OSCMD
25 POFILE = kproplog.po
26 POFILES = generic.po
28 LDFLAGS += -R$(KRB5RUNPATH) $(KRUNPATH)
29 LDLIBS += -L$(KRB5LIB) $(KLIB) -lkdb -lkadm5clnt
31 CPPFLAGS += -I. -I$(SRC)/lib/krb5 \
32 -I$(KRB5IPROPDIR) \
33 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
34 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
36 CERRWARN += -Wno-unused-variable
37 CERRWARN += -Wno-unused-function
38 CERRWARN += -Wno-implicit-function-declaration
40 all: $(PROG)
42 $(PROG): $(OBJS) $(DERIVED_OBJS)
43 $(LINK.c) $(OBJS) $(DERIVED_OBJS) -o $@ $(LDLIBS)
44 $(POST_PROCESS)
46 # Rules to rpcgen-erate derived files from the iprop.x spec file
47 iprop.h: $(KRB5IPROPDIR)/iprop.x
48 $(RM) $@
49 $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
51 iprop_xdr.c: iprop.h $(KRB5IPROPDIR)/iprop.x
52 $(RM) $@
53 $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD)
55 # Explicitly state the dependancy on iprop.h
56 $(OBJS): iprop.h
58 install: $(KRB5SBINPROG)
61 clean:
62 $(RM) $(OBJS) $(DERIVED_OBJS) $(ISRC)
64 include ../../Makefile.targ
66 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
67 $(RM) $@
68 $(CAT) $(POFILES) > $@
70 generic.po:
71 $(RM) messages.po
72 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
73 $(SED) "/^domain/d" messages.po > $@
74 $(RM) messages.po