Skip to content
Snippets Groups Projects
Commit 748391f8 authored by deuce's avatar deuce
Browse files

Buildfile and main function to use libglade to load the .glade interface

definition.  This can be built and ran... it looks pretty and does
absolutely nothing.
parent c7a3474c
Branches
Tags
No related merge requests found
# GNUmakefile
#########################################################################
# Makefile for Synchronet monitor for Unix #
# For use with GNU make and GNU C Compiler or Borland Kylix C++ #
# @format.tab-size 4, @format.use-tabs true #
# #
# gcc: gmake #
# Borland (still in testing/debuging stage): gmake bcc=1 #
# #
# Optional build targets: dlls, utils, mono, all (default) #
#########################################################################
# $Id$
SRC_ROOT = ../..
include $(SRC_ROOT)/build/Common.gmake
ifeq ($(os),sunos)
LDFLAGS += -lnsl
endif
vpath %.c ..
CFLAGS += -I.. $(SMBLIB_CFLAGS) $(XPDEV-MT_CFLAGS) `pkg-config libglade-2.0 --cflags`
LDFLAGS += $(SMBLIB_LDFLAGS) $(XPDEV-MT_LDFLAGS) $(MT_LDFLAGS) `pkg-config libglade-2.0 --libs`
$(GTKUSEREDIT): $(OBJS)
@echo Linking $@
$(QUIET)$(CC) $(LDFLAGS) $(OBJS) -o $@ $(SMBLIB_LIBS) $(XPDEV-MT_LIBS)
#include <gtk/gtk.h>
#include <glade/glade.h>
int main(int argc, char *argv[]) {
GladeXML *xml;
gtk_init(&argc, &argv);
glade_init();
/* load the interface */
xml = glade_xml_new("gtkuseredit.glade", NULL, NULL);
/* connect the signals in the interface */
glade_xml_signal_autoconnect(xml);
/* start the event loop */
gtk_main();
return 0;
}
This diff is collapsed.
OBJS := \
$(MTOBJODIR)$(DIRSEP)gtkuseredit$(OFILE) \
GTKUSEREDIT = $(EXEODIR)$(DIRSEP)gtkuseredit$(EXEFILE)
all: xpdev-mt smblib $(MTOBJODIR) $(EXEODIR) $(GTKUSEREDIT)
$(GTKUSEREDIT): $(XPDEV-MT_LIB) $(SMBLIB)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment