configure
gtksamba.pc
man/*.1
+libsamba-gtk.so.0.0.1
include Makefile.settings
BINS = gepdump gregedit gwcrontab gwsam gwsvcctl
-CFLAGS = $(GTK_CFLAGS) $(TALLOC_CFLAGS) -I.
-LIBS = $(GTK_LIBS) $(TALLOC_LIBS)
+CFLAGS = $(GTK_CFLAGS) $(TALLOC_CFLAGS) $(DCERPC_CFLAGS) $(GENSEC_CFLAGS) -I.
+LIBS = $(GTK_LIBS) $(TALLOC_LIBS) $(DCERPC_LIBS) $(GENSEC_LIBS)
+
LIB = libsamba-gtk.so.0.0.1
+MANPAGES = man/gepdump.1 man/gwcrontab.1 man/gwsvcctl.1 man/gregedit.1
all: $(BINS) $(LIB)
+install:: $(BINS) $(LIB)
+ $(INSTALL) -d $(bindir) $(libdir) $(man1dir)
+ $(INSTALL) -m 0755 $(BINS) $(bindir)
+ $(INSTALL) -m 0755 $(LIBDIR) $(libdir)
+
+install-doc::
+ $(INSTALL) -m 0644 $(MANPAGES) $(man1dir)
+
configure:
autoconf -f
ln -s $(LIB) libsamba-gtk.so
%.o: %.c
- $(CC) $(CFLAGS) -c $<
+ $(CC) $(CFLAGS) -o $@ -c $<
$(BINS): %: tools/%.o $(LIB)
$(CC) -o $@ $< -lsamba-gtk -L. $(LIBS)
dist:: configure distclean
-doc:: man/gepdump.1 man/gwcrontab.1 man/gwsvcctl.1 man/gregedit.1
+doc:: $(MANPAGES)
DOCBOOK_MANPAGE_URL = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
TALLOC_CFLAGS = @TALLOC_CFLAGS@
TALLOC_LIBS = @TALLOC_LIBS@
+DCERPC_CFLAGS = @DCERPC_CFLAGS@
+DCERPC_LIBS = @DCERPC_LIBS@
+
+GENSEC_CFLAGS = @GENSEC_CFLAGS@
+GENSEC_LIBS = @GENSEC_LIBS@
+
XSLTPROC = @XSLTPROC@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+libdir = @libdir@
+
+datarootdir = @datarootdir@
+mandir = @mandir@
+man1dir = $(mandir)/man1
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "includes.h"
-#include "gtk/common/gtk-smb.h"
-#include "auth/credentials/credentials.h"
+#include <stdbool.h>
+#include <stdint.h>
+#include "common/gtk-smb.h"
+#include <credentials.h>
static void gtk_get_credentials(struct cli_credentials *credentials)
{
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "includes.h"
-#include "gtk/common/gtk-smb.h"
-#include "gtk/common/select.h"
-#include "version.h"
-#include "librpc/rpc/dcerpc.h"
-#include "auth/credentials/credentials.h"
+#define _GNU_SOURCE
+#include <stdint.h>
+#include <stdbool.h>
+#include <stdlib.h>
+#include <string.h>
+#include <core.h>
+#include <samba/version.h>
+#include "common/gtk-smb.h"
+#include "common/select.h"
+#include <dcerpc.h>
+#include <credentials.h>
/**
* Dialog error showing a WERROR
#define GTK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
#include <talloc.h>
+#include <core.h>
typedef struct _GtkRpcBindingDialog GtkRpcBindingDialog;
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "includes.h"
-#include "lib/events/events.h"
-#include "lib/events/events_internal.h"
-
-#include "gtk/common/select.h"
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <stdarg.h>
+#include <sys/time.h>
+#include <core.h>
+#include <util.h>
+#include <events/events.h>
+#include <events/events_internal.h>
+
+#include "common/select.h"
/* as gtk_main() doesn't take a parameter nor return one,
we need to have a global event context structure for our
}
struct gtk_fd_event {
- BOOL running;
- BOOL free_after_run;
+ bool running;
+ bool free_after_run;
GIOChannel *channel;
guint fd_id;
};
if (condition & G_IO_OUT)
flags |= EVENT_FD_WRITE;
- gtk_fd->running = True;
+ gtk_fd->running = true;
fde->handler(fde->event_ctx, fde, flags, fde->private_data);
- gtk_fd->running = False;
+ gtk_fd->running = false;
if (gtk_fd->free_after_run) {
talloc_free(fde);
/* the event is running reject the talloc_free()
as it's done by the gtk_event_timed_handler()
*/
- gtk_fd->free_after_run = True;
+ gtk_fd->free_after_run = true;
return -1;
}
fd_id = g_io_add_watch(channel, condition, gtk_event_fd_handler, fde);
}
- gtk_fd->running = False;
- gtk_fd->free_after_run = False;
+ gtk_fd->running = false;
+ gtk_fd->free_after_run = false;
gtk_fd->channel = channel;
gtk_fd->fd_id = fd_id;
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "includes.h"
-#include "librpc/gen_ndr/ndr_samr_c.h"
-#include "gtk/common/select.h"
-#include "gtk/common/gtk-smb.h"
-#include "auth/credentials/credentials.h"
+#define _GNU_SOURCE
+#include <stdint.h>
+#include <stdlib.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <dcerpc/ndr_samr_c.h>
+#include "common/select.h"
+#include "common/gtk-smb.h"
+#include <credentials.h>
/* GtkSelectDomainDialog */
PKG_CHECK_MODULES(GTK, [glib-2.0 gtk+-2.0 >= 2.4])
PKG_CHECK_MODULES(TALLOC, [talloc])
+PKG_CHECK_MODULES(DCERPC, [dcerpc])
+PKG_CHECK_MODULES(GENSEC, [gensec])
AC_CONFIG_FILES([Makefile.settings gtksamba.pc])
AC_OUTPUT
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "librpc/gen_ndr/ndr_epmapper_c.h"
-#include "librpc/gen_ndr/ndr_mgmt_c.h"
+#define _GNU_SOURCE
+#include <stdint.h>
+#include <stdbool.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <stdarg.h>
+#include <string.h>
+#include <dcerpc.h>
+#include <dcerpc/ndr_mgmt_c.h>
+#include <dcerpc/ndr_epmapper_c.h>
#include "common/gtk-smb.h"
#include "common/select.h"
-#include "auth/gensec/gensec.h"
+#include <gensec.h>
#include <stdbool.h>
/*