Moved SoupSettings down to core
[WebThing.git] / Makefile
1 CFLAGS = `pkg-config glib-2.0 libsoup-2.4 webkit-1.0 --cflags`
2 LDFLAGS = `pkg-config glib-2.0 libsoup-2.4 webkit-1.0 --libs`
3 CSFLAGS = -debug
4 references = -r:webkit-sharp.dll -pkg:gtk-sharp-2.0
5
6 all: main.exe plugins
7
8 main.exe: main.cs WebThing.dll SoupSettings.so
9         gmcs $(CSFLAGS) -r:WebThing.dll main.cs
10
11 WebThing.dll: WebThing.cs
12         gmcs $(CSFLAGS) $(references) -target:library -out:$@ $<
13
14 SoupSettings.so: SoupSettings.c
15         $(CC) $(CFLAGS) -shared $(LDFLAGS) $< -o $@
16
17 plugins:
18         make -C plugins
19 .PHONY: plugins