grim/purple-signals

a few more updates to get return values working, based off of sadrul's patch
TARGET=purple_signals
SOURCES=purple_signals.c signals.c marshallers.c object.c
HEADERS=marshallers.h signals.h object.h
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
CC=gcc
CFLAGS=\
`pkg-config --cflags glib-2.0` \
`pkg-config --cflags gobject-2.0` \
-g -g3 -Wall
LIBS=\
`pkg-config --libs glib-2.0` \
`pkg-config --libs gobject-2.0`
OBJS=$(SOURCES:%.c=%.o) $(BUILT_SOURCES:%.c=%.o)
all: $(TARGET)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(TARGET): $(BUILT_SOURCES) $(OBJS) $(HEADERS)
$(CC) $(LIBS) $(OBJS) $(BUILT_SOURCES) -o $(TARGET)
marshallers.h: marshallers.list
$(GLIB_GENMARSHAL) --prefix=purple_marshal marshallers.list --header > marshallers.h
marshallers.c: marshallers.list marshallers.h
$(GLIB_GENMARSHAL) --prefix=purple_marshal marshallers.list --body > marshallers.c
clean:
rm -f *.o $(TARGET) $(BUILT_SOURCES) $(OBJS)
info:
echo $(OBJS)