1 include Makefile.settings
3 BINS = gepdump gregedit gwcrontab gwsam gwsvcctl
4 CFLAGS = $(GTK_CFLAGS) $(TALLOC_CFLAGS) $(DCERPC_CFLAGS) $(GENSEC_CFLAGS) -I.
5 LIBS = $(GTK_LIBS) $(TALLOC_LIBS) $(DCERPC_LIBS) $(GENSEC_LIBS)
7 LIB = libsamba-gtk.so.0.0.1
8 MANPAGES = man/gepdump.1 man/gwcrontab.1 man/gwsvcctl.1 man/gregedit.1
12 install:: $(BINS) $(LIB)
13 $(INSTALL) -d $(bindir) $(libdir) $(man1dir)
14 $(INSTALL) -m 0755 $(BINS) $(bindir)
15 $(INSTALL) -m 0755 $(LIBDIR) $(libdir)
18 $(INSTALL) -m 0644 $(MANPAGES) $(man1dir)
23 Makefile.settings: configure
26 $(LIB): $(patsubst %.c, %.o, $(wildcard common/*.c))
27 $(CC) -shared -o $@ $^ $(LIBS)
28 ln -s $(LIB) libsamba-gtk.so
31 $(CC) $(CFLAGS) -o $@ -c $<
33 $(BINS): %: tools/%.o $(LIB)
34 $(CC) -o $@ $< -lsamba-gtk -L. $(LIBS)
39 rm -f $(BINS) $(LIB) *.so */*.o
43 rm -f config.log config.cache config.status
44 rm -f Makefile.settings
46 dist:: configure distclean
50 DOCBOOK_MANPAGE_URL = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
55 $(XSLTPROC) -o $@ $(DOCBOOK_MANPAGE_URL) $<