From 59f17375c9a7368487e870326bc6facdf4e456ce Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Mon, 12 Nov 2012 23:58:18 +0100 Subject: correct includes and fix CFLAGS --- libglouglou/Makefile | 6 ++---- libglouglou/gg_server.c | 5 +++++ 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 +#include +#include + + struct gg_server { }; -- cgit v1.2.3-59-g8ed1b