3 LIBNAME = $(shell echo $(basename $(SONAME)) | sed -e 's/^lib//')
4 HTARGET = $(prefix)/include/$(LIBNAME)/
5 LIBTARGET = $(prefix)/lib/
7 CFLAGS += -static -fpic $(shell pkg-config --cflags glib-2.0 gobject-2.0 mono) $(EXTRAINCLUDES) -I.
11 CFLAGS += -DCILC_BUNDLE
12 EXTRATARGETS = bundle.h
21 $(SONAME): $(EXTRAOBJS) $(OBJS)
22 gcc -Wall -fpic -shared `pkg-config --libs glib-2.0 gobject-2.0 mono` -lpthread $(EXTRAOBJS) $(OBJS) $(EXTRALIBS) -o $(SONAME)
24 $(LIBNAME).o: $(EXTRATARGETS)
26 bundle.o bundle.h: $(ASSEMBLY)
27 mkbundle -c -o bundle.c.tmp -oo bundle.o $(ASSEMBLY)
29 csplit bundle.c.tmp /mono_main/
34 install_libs: $(SONAME)
36 install -s $(SONAME) $(LIBTARGET)
40 install *.h $(HTARGET)
42 install: install_libs install_headers
45 rm -rf core *~ *.o *.so bundle.h