# $Id: Makefile,v 1.2 2004/08/04 18:57:05 baum Exp $
#
# this Makefile must be called from the Master Gnocl Makefile

ADDCFLAGS += $(shell pkg-config --cflags gtksourceview-2.0)
LIBS += $(shell pkg-config --libs gtksourceview-2.0)

############################################################
# There should be no need to edit something below this line
############################################################

OBJS = \
   sourceview.o \
   gnoclSourceView.o




.PHONY: sourceview clean

%.o : %.c; $(CC) -c $(CPPFLAGS) $(CFLAGS) $(ADDCFLAGS) -o $*.o $<

sv: ../gnoclSourceView.so ;

../gnoclSourceView.so: $(OBJS)
	$(CC) -shared -o ../gnoclSourceView.so $(OBJS) $(LIBS)

clean:
	rm -f $(OBJS) ../gnoclSourceView.so

