forked from Lainports/opnsense-ports
44 lines
1.9 KiB
Text
44 lines
1.9 KiB
Text
--- Makefile.orig 2013-06-14 18:54:08 UTC
|
|
+++ Makefile
|
|
@@ -1,6 +1,3 @@
|
|
-CSC1=mcs
|
|
-CSC=gmcs
|
|
-
|
|
DEFINES=/d:TRACE
|
|
|
|
VERSION=$(shell egrep AssemblyVersion version/AssemblyVersion.cs | egrep -o \([[:digit:]]\.\)+[[:digit:]]+)
|
|
@@ -33,7 +30,7 @@ ALLLIBS = \
|
|
|
|
UNINSTALLLIBS = $(basename $(ALLLIBS))
|
|
|
|
-FRAMEWORK_REFS = -r:System.dll -r:System.Xml.dll -r:System.Configuration.dll
|
|
+FRAMEWORK_REFS = -r:System.dll -r:System.Xml.dll -r:System.Configuration.dll -r:%%LOCALBASE%%/lib/mono/Newtonsoft.Json/Newtonsoft.Json.dll
|
|
|
|
PKGCONFIG_FILES = $(patsubst %.pc.in,%.pc,$(wildcard misc/*.pc.in))
|
|
|
|
@@ -112,14 +109,14 @@ clean:
|
|
install: all
|
|
for i in $(ALLLIBS); do gacutil -i $$i -package GData-Sharp -root "$(DESTDIR)$(PREFIX)/lib"; done
|
|
install -d "$(DESTDIR)$(PKGCONFIGDIR)"
|
|
- install -m 644 -t "$(DESTDIR)$(PKGCONFIGDIR)" $(PKGCONFIG_FILES)
|
|
+ install -m 644 $(PKGCONFIG_FILES) "$(DESTDIR)$(PKGCONFIGDIR)"
|
|
|
|
uninstall:
|
|
for i in $(UNINSTALLLIBS); do gacutil -u $$i -package GData-Sharp -root "$(DESTDIR)$(PREFIX)/lib"; done
|
|
for i in $(PKGCONFIG_FILES) ; do rm "$(DESTDIR)$(PKGCONFIGDIR)/$$i" ; done
|
|
|
|
tests: $(ALLLIBS)
|
|
- $(CSC) $(DEFINES) -target:library -out:unittests.dll $(ALLREFS) -r:nunit.framework.dll $(test_sources)
|
|
+ $(CSC) $(DEFINES) -target:library -out:unittests.dll $(ALLREFS) -r:packages/nunit.framework/lib/nunit.framework.dll $(test_sources)
|
|
|
|
gapps_sample_sources = samples/appsforyourdomain/appsdemo.cs
|
|
gapps_appsdemo.exe: $(ALLLIBS) $(gapps_sample_sources)
|
|
@@ -147,7 +144,7 @@ gspreadsheet_demo.exe:
|
|
|
|
PhotoTool_sources = $(wildcard samples/PhotoBrowser/*.cs)
|
|
PhotoTool.exe: $(ALLLIBS) $(PhotoTool_sources)
|
|
- $(CSC) -out:$@ $(ALLREFS) -r:System.Windows.Forms -r:System.Drawing -r:System.Data $(PhotoTool_sources)
|
|
+ $(CSC) -out:$@ $(ALLREFS) -r:System.Windows.Forms.dll -r:System.Drawing.dll -r:System.Data.dll $(PhotoTool_sources)
|
|
|
|
test:
|
|
nunit-console2 unittests.dll
|