-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile_mac
27 lines (18 loc) · 928 Bytes
/
makefile_mac
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
EXEDIR=exe
SRCDIR=src
FIRMWARENAME=qpbox.l2
PROVIDERSOURCES=$(SRCDIR)/provider.cs
RGASOURCES=$(SRCDIR)/rga.cs $(SRCDIR)/controls.cs $(SRCDIR)/serial.cs $(SRCDIR)/download.cs $(SRCDIR)/plot.cs
BOOTFIRMSOURCES=$(SRCDIR)/bootfirm.cs $(SRCDIR)/download.cs
ADDITIONAL_LIB=-r:System.Windows.Forms.dll -r:System.Drawing.dll
all : provider.exe rga.exe bootfirm.exe
provider.exe : $(PROVIDERSOURCES) $(FIRMWARE)
mcs $(ADDITIONAL_LIB) /target:winexe /resource:$(SRCDIR)/$(FIRMWARENAME) /O $(PROVIDERSOURCES) -out:$(EXEDIR)/provider.exe
rga.exe : $(RGASOURCES) $(FIRMWARE)
mcs $(ADDITIONAL_LIB) /target:winexe /resource:$(SRCDIR)/$(FIRMWARENAME) /O $(RGASOURCES) -out:$(EXEDIR)/rga.exe
bootfirm.exe : $(BOOTFIRMSOURCES) $(FIRMWARE)
mcs $(ADDITIONAL_LIB) /resource:$(SRCDIR)/$(FIRMWARENAME) $(BOOTFIRMSOURCES) -out:$(EXEDIR)/bootfirm.exe
clean :
-rm -f rga.exe
-rm -f bootfirm.exe
.PHONY : clean all