Skip to content
Browse files

MicroSamples: fix build, clean up Makefile

  • Loading branch information...
1 parent 12b8bc2 commit f2df5a18c0562844941445193237998bab45ffe3 @abock abock committed Feb 21, 2013
Showing with 17 additions and 8 deletions.
  1. +17 −8 MicroSamples/Makefile
View
25 MicroSamples/Makefile
@@ -1,18 +1,27 @@
+include ../config.mk
+
+MONOMAC_DLL = $(MDROOT_ESCAPED)/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoMac.dll
+
DEMOS = \
generate-pdf.exe \
locator.exe \
HelloCoreWlanSample.exe
+.PHONY: all clean
+
all: $(DEMOS)
-run1:
- MONO_PATH=../../src/ mono generate-pdf.exe
+clean:
+ rm -f *.dll *.exe demo.pdf
+
+MonoMac.dll: $(MONOMAC_DLL)
+ cp "$<" $@
-generate-pdf.exe: generate-pdf.cs
- gmcs generate-pdf.cs -r:../../src/MonoMac.dll -r:System.Drawing
+generate-pdf.exe: MonoMac.dll generate-pdf.cs
+ gmcs generate-pdf.cs -r:MonoMac.dll -r:System.Drawing
-locator.exe: locator.cs
- gmcs locator.cs -r:../../src/MonoMac.dll
+locator.exe: MonoMac.dll locator.cs
+ gmcs locator.cs -r:MonoMac.dll
-HelloCoreWlanSample.exe: HelloCoreWlanSample.cs
- gmcs HelloCoreWlanSample.cs -r:../../src/MonoMac.dll
+HelloCoreWlanSample.exe: MonoMac.dll HelloCoreWlanSample.cs
+ gmcs HelloCoreWlanSample.cs -r:MonoMac.dll

0 comments on commit f2df5a1

Please sign in to comment.
Something went wrong with that request. Please try again.