Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (18 sloc) 0.594 kb
VALAC=valac
#VALAFLAGS=-g --save-temps
VALAFLAGS=
SRCS = plugger.vala plugin.vala
all: plugger libmyplugin.so
# The main binary
plugger: $(SRCS)
$(VALAC) $(VALAFLAGS) --pkg gmodule-2.0 $(SRCS)
# Generate a test plugin
libmyplugin.so: myplugin.vala api
$(VALAC) -C --pkg plugin --vapidir=. myplugin.vala
$(CC) --shared -fPIC -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I. -lglib-2.0 -o $@ myplugin.c
# Generate the plugin API (C and Vala)
api: plugin.vala
$(VALAC) --library=plugin -H plugin.h -C plugin.vala
# Cleaning
clean:
rm -f *.c *.h *.vapi plugger libmyplugin.so
Jump to Line
Something went wrong with that request. Please try again.