Add GTK test client, rework API with callbacks, make library
This commit is contained in:
parent
59068bbd13
commit
36bbcbe182
9 changed files with 1161 additions and 132 deletions
35
gtk-gui/Makefile
Normal file
35
gtk-gui/Makefile
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Copyright (C) 2011 Nils Faerber <nils.faerber@kernelconcepts.de>
|
||||
|
||||
$(pkg-config --libs --cflags glib-2.0) $(pkg-config --libs --cflags dbus-glib-1) $(pkg-config --libs --cflags dbus-1)
|
||||
|
||||
# prefix for installation and search path (like icons)
|
||||
PREFIX = /usr/local/
|
||||
CFLAGS = -DDEBUG -Wall -O2 -Wl,--export-dynamic $(CCFLAGS) -I.. `pkg-config --cflags glib-2.0` `pkg-config --cflags dbus-glib-1` `pkg-config --cflags dbus-1` `pkg-config --cflags gtk+-2.0`
|
||||
#CFLAGS = -Wall -O2 $(CCFLAGS)
|
||||
|
||||
LDFLAGS = `pkg-config --libs glib-2.0` `pkg-config --libs dbus-glib-1` `pkg-config --libs dbus-1` `pkg-config --libs gtk+-2.0` `pkg-config --libs gmodule-export-2.0` -L.. -lmetawatch
|
||||
|
||||
PRGNAME = mw-client
|
||||
|
||||
MEMBERS = mw-client
|
||||
|
||||
# no need to change anything below this line
|
||||
# ------------------------------------------
|
||||
.SUFFIXES: .d .c
|
||||
|
||||
CFLAGS += -MD -DPREFIX=\"$(PREFIX)\" $(OPTIONS)
|
||||
LDFLAGS += $(CLDFLAGS)
|
||||
|
||||
SOURCES = $(patsubst %,%.c,$(MEMBERS))
|
||||
OBJS = $(patsubst %,%.o,$(MEMBERS))
|
||||
DEPS = $(patsubst %,%.d,$(MEMBERS))
|
||||
|
||||
all: $(PRGNAME)
|
||||
|
||||
$(PRGNAME): $(OBJS)
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.d $(PRGNAME)
|
||||
|
||||
-include $(DEPS)
|
Loading…
Add table
Add a link
Reference in a new issue