Rename main to WebThingMain
+CS = gmcs
CFLAGS = `pkg-config glib-2.0 libsoup-2.4 webkit-1.0 --cflags`
LDFLAGS = `pkg-config glib-2.0 libsoup-2.4 webkit-1.0 --libs`
CSFLAGS = -debug
references = -r:webkit-sharp.dll -pkg:gtk-sharp-2.0
-all: main.exe plugins
+all: WebThingMain.exe plugins
-main.exe: main.cs WebThing.dll SoupSettings.so
- gmcs $(CSFLAGS) -r:WebThing.dll main.cs
+WebThingMain.exe: WebThingMain.cs WebThing.dll SoupSettings.so
+ $(CS) $(CSFLAGS) -r:WebThing.dll -out:$@ WebThingMain.cs
WebThing.dll: WebThing.cs WebThingView.cs WebThingPlugin.cs
- gmcs $(CSFLAGS) $(references) -target:library -out:$@ $^
+ $(CS) $(CSFLAGS) $(references) -target:library -out:$@ $^
SoupSettings.so: SoupSettings.c
$(CC) $(CFLAGS) -shared $(LDFLAGS) $< -o $@
export LD_LIBRARY_PATH=$WEBTHING_HOME:$WEBTHING_HOME/plugins:$LD_LIBRARY_PATH
-exec mono $WEBTHING_HOME/main.exe "$@"
+exec mono $WEBTHING_HOME/WebThingMain.exe "$@"
+using System;
+
+namespace bytex64.WebThing {
+ public class WebThingMain {
+ static WebThing wt;
+
+ public static void Main(string[] args) {
+ wt = new WebThing();
+ wt.Run();
+ }
+ }
+}
-using System;
-
-namespace bytex64.WebThing {
- public class WebThingMain {
- static WebThing wt;
-
- public static void Main(string[] args) {
- wt = new WebThing();
- wt.Run();
- }
- }
-}