summaryrefslogtreecommitdiffstats
path: root/receiver/Makefile
blob: 3d89214f27b364c7733b069184042294d194eb23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include ../config.mk

all: Socket.so

clean:
	rm -f *.c *.so

socket.c: socket.vala msg-format.vala
	$(VALAC) --pkg gmodule-2.0 --pkg gio-2.0 --pkg posix --pkg linux -C $^ ../receiver.vala

Socket.so: socket.c msg-format.c
	$(CC) -shared -fPIC `pkg-config --cflags --libs glib-2.0 gio-2.0 gobject-2.0 gmodule-2.0` -o $@ $^

.PHONY: all clean