forked from xamarin/ios-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Make.common
45 lines (34 loc) · 1.51 KB
/
Make.common
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
MONOTOUCH_MONO_PATH = /Developer/MonoTouch/usr/lib/mono/2.1
MONOTOUCH_VERSION = 1.0
MONOTOUCH_PREFIX = /Developer/MonoTouch
MONOTOUCH_SIMULATOR_SDK = $(MONOTOUCH_PREFIX)/SDKs/MonoTouch${MONOTOUCH_VERSION}.iphonesimulator.sdk
MONOTOUCH_DEVICE_SDK = $(MONOTOUCH_PREFIX)/SDKs/MonoTouch${MONOTOUCH_VERSION}.iphoneos.sdk
MIBTOOL = $(MONOTOUCH_PREFIX)/usr/bin/mibtool
MTOUCH = $(MONOTOUCH_PREFIX)/usr/bin/mtouch
all: $(EXTRA_DEPS) simulator/$(APP)
cycle:
make clean
make launch
cat output error
dev: $(EXTRA_DEPS) device/$(APPDIR)
$(MTOUCH) -bundleid com.novell.monotouch.sample.$(EXE) -dev device/$(APPDIR) -c "iPhone Developer: $(DEVNAME)" $(EXE)
for f in $(DATA); do cp $$f device/$(APPDIR); done
$(MTOUCH) -installdev device/$(APPDIR)
launch: simulator/$(APP)
-rm -f output error
$(MTOUCH) --launchsim=simulator/$(APPDIR) --stdout=output --stderr=error
debug: simulator/$(APP)
$(MTOUCH) --debugsim=simulator/$(APPDIR) --stdout=output --stderr=error
simulator/$(APP): simulator/$(APPDIR) $(EXE) $(MTOUCH)
$(MTOUCH) -bundleid com.novell.monotouch.sample.$(EXE) $(MFLAGS) -sim simulator/$(APPDIR) $(EXE)
for f in $(DATA); do cp $$f simulator/$(APPDIR); done
simulator/$(APPDIR):
mkdir -p simulator/$(APPDIR)
device/$(APPDIR):
mkdir -p device/$(APPDIR)
main.m: $(EXE) $(MTOUCH)
$(MTOUCH) -v $(EXE)
$(EXE): $(SOURCES)
/Developer/MonoTouch/usr/bin/smcs $(SOURCES) -debug -r:monotouch.dll $(REFS) -out:$(EXE)
clean:
-rm -rf $(EXE) $(APPDIR) device simulator $(GENERATED)