commit:1d96cf129e438f1d5a377a2358e3441678e31578
author:Chip Black
committer:Chip Black
date:Fri Jun 5 03:47:01 2009 -0500
parents:b8f9b3854c2f1e841aec6be499df119e0e97e1f0
Rename main to WebThingMain
diff --git a/Makefile b/Makefile
line changes: +5/-4
index 1fbd2b8..ea5eb46
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,16 @@
+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 $@

diff --git a/WebThing b/WebThing
line changes: +1/-1
index 022be94..c3f8fa3
--- a/WebThing
+++ b/WebThing
@@ -8,4 +8,4 @@ cd "$WEBTHING_HOME"
 
 export LD_LIBRARY_PATH=$WEBTHING_HOME:$WEBTHING_HOME/plugins:$LD_LIBRARY_PATH
 
-exec mono $WEBTHING_HOME/main.exe "$@"
+exec mono $WEBTHING_HOME/WebThingMain.exe "$@"

diff --git a/WebThingMain.cs b/WebThingMain.cs
line changes: +12/-0
index 0000000..8861283
--- /dev/null
+++ b/WebThingMain.cs
@@ -0,0 +1,12 @@
+using System;
+
+namespace bytex64.WebThing {
+    public class WebThingMain {
+        static WebThing wt;
+
+        public static void Main(string[] args) {
+            wt = new WebThing();
+            wt.Run();
+        }
+    }
+}

diff --git a/main.cs b/main.cs
line changes: +0/-12
index 8861283..0000000
--- a/main.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-
-namespace bytex64.WebThing {
-    public class WebThingMain {
-        static WebThing wt;
-
-        public static void Main(string[] args) {
-            wt = new WebThing();
-            wt.Run();
-        }
-    }
-}