38 SRCS= $(OBJS:%.o=%.c)
39
40 include $(SRC)/cmd/Makefile.cmd
41
42 POFILE= smbutil_all.po
43 POFILES= $(OBJS:%.o=%.po)
44
45 CLEANFILES += srvsvc1_ndr.c
46 CLOBBERFILES+= $(POFILE) $(POFILES)
47
48 CSTD= $(CSTD_GNU99)
49
50 LDLIBS += -lmlrpc -lsmbfs -lnsl
51
52 CPPFLAGS += -I$(SRC)/lib/libsmbfs \
53 -I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
54
55 # Debugging
56 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
57
58 # uncomment these for dbx debugging
59 #COPTFLAG = -g
60 #CTF_FLAGS =
61 #CTFCONVERT_O=
62 #CTFMERGE_LIB=
63
64 # disable some of the less important lint
65 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
66 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
67
68 all: $(PROG)
69
70 $(PROG): $(OBJS)
71 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
72 $(POST_PROCESS)
73
74 install: all $(ROOTPROG)
75
76 $(ROOTPROG): $(PROG)
77 $(INS.file) $(PROG)
78
79 catalog: $(POFILE)
80
81 $(POFILE): $(POFILES)
82 $(RM) $@
83 $(CAT) $(POFILES) > $@
|
38 SRCS= $(OBJS:%.o=%.c)
39
40 include $(SRC)/cmd/Makefile.cmd
41
42 POFILE= smbutil_all.po
43 POFILES= $(OBJS:%.o=%.po)
44
45 CLEANFILES += srvsvc1_ndr.c
46 CLOBBERFILES+= $(POFILE) $(POFILES)
47
48 CSTD= $(CSTD_GNU99)
49
50 LDLIBS += -lmlrpc -lsmbfs -lnsl
51
52 CPPFLAGS += -I$(SRC)/lib/libsmbfs \
53 -I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
54
55 # Debugging
56 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
57
58 # disable some of the less important lint
59 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
60 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
61
62 all: $(PROG)
63
64 $(PROG): $(OBJS)
65 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
66 $(POST_PROCESS)
67
68 install: all $(ROOTPROG)
69
70 $(ROOTPROG): $(PROG)
71 $(INS.file) $(PROG)
72
73 catalog: $(POFILE)
74
75 $(POFILE): $(POFILES)
76 $(RM) $@
77 $(CAT) $(POFILES) > $@
|