aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-11-12 23:58:18 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-11-12 23:58:18 +0100
commit59f17375c9a7368487e870326bc6facdf4e456ce (patch)
tree73d2f141c909eee9ae9e1b268cef9c56ef635d78
parentcompilation basics (diff)
downloadglouglou-59f17375c9a7368487e870326bc6facdf4e456ce.tar.xz
glouglou-59f17375c9a7368487e870326bc6facdf4e456ce.zip
correct includes and fix CFLAGS
-rw-r--r--libglouglou/Makefile6
-rw-r--r--libglouglou/gg_server.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/libglouglou/Makefile b/libglouglou/Makefile
index 33df3a6..32176b6 100644
--- a/libglouglou/Makefile
+++ b/libglouglou/Makefile
@@ -1,6 +1,4 @@
-CFLAGS += $(shell pkg-config --cflags elementary evas ecore)
-LIBS += $(shell pkg-config --libs elementary evas ecore)
-CFLAGS += -Wall -O2
+CFLAGS += -Wall -O2 -fPIC -shared
PREFIX=/usr/local
INCLUDEDIR=$(PREFIX)/include
@@ -15,7 +13,7 @@ OBJECTS = $(SOURCES:.c=.o)
all: $(TARGET)
$(TARGET): $(OBJECTS)
- $(CC) -shared -o $(TARGET) $(OBJECTS)
+ $(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS)
install:
@echo "installation of $(LIBNAME)"
diff --git a/libglouglou/gg_server.c b/libglouglou/gg_server.c
index 3f075e0..4fdd07d 100644
--- a/libglouglou/gg_server.c
+++ b/libglouglou/gg_server.c
@@ -1,3 +1,8 @@
+#include <sys/socket.h>
+#include <net/if.h>
+#include <netinet/in.h>
+
+
struct gg_server {
};