Permalink
Browse files

GIO Socket Server/Client Example

  • Loading branch information...
1 parent 90e42f1 commit 4d1a627f994475c3026b02d86200a54b0a300af7 Günther Wutz committed Oct 5, 2012
@@ -0,0 +1,20 @@
+CC=gcc
+CFLAGS=-c -Wall `pkg-config --cflags gobject-2.0 gio-2.0` -g
+LDFLAGS= `pkg-config --libs gobject-2.0 gio-2.0`
+SOURCES_CLIENT=hsr-proxy.c hsr-icalc.c hsr-client.c
+SOURCES_SERVER=hsr-server.c hsr-adapter.c hsr-calc-impl.c hsr-icalc.c
+OBJECTS_CLIENT=$(SOURCES_CLIENT:.c=.o)
+OBJECTS_SERVER=$(SOURCES_SERVER:.c=.o)
+EXECUTABLE_CLIENT=client
+EXECUTABLE_SERVER=server
+
+all: $(SOURCES_CLIENT) $(SOURCES_SERVER) $(EXECUTABLE_CLIENT) $(EXECUTABLE_SERVER)
+
+$(EXECUTABLE_CLIENT): $(OBJECTS_CLIENT)
+ $(CC) $(LDFLAGS) $(OBJECTS_CLIENT) -o $@
+
+$(EXECUTABLE_SERVER): $(OBJECTS_SERVER)
+ $(CC) $(LDFLAGS) $(OBJECTS_SERVER) -o $@
+
+.c.o:
+ $(CC) $(CFLAGS) $< -o $@
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 4d1a627

Please sign in to comment.