From: Oliver Schmidt
Date: Sun, 5 May 2013 21:46:12 +0000 (+0200)
Subject: Added support for building the MS VS solution from the Makefile.
X-Git-Tag: V2.14~23
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a8aeab5d57eb08e409f9a61ca720a94e01c31533;p=cc65
Added support for building the MS VS solution from the Makefile.
---
diff --git a/src/Makefile b/src/Makefile
index 635c87470..d5401e087 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,3 +1,5 @@
+ifeq ($(shell echo),)
+
PROGS = ar65 \
ca65 \
cc65 \
@@ -100,3 +102,20 @@ $(eval $(call OBJS_template,common))
$(foreach prog,$(PROGS),$(eval $(call PROG_template,$(prog))))
-include $(DEPS)
+
+else # cmd.exe
+
+.SUFFIXES:
+
+.PHONY: all mostlyclean clean
+
+all:
+ msbuild cc65.sln /p:configuration=release /consoleloggerparameters:disableconsolecolor
+
+mostlyclean:
+ $(if $(wildcard ../wrk),rmdir /s /q ..\wrk)
+
+clean:
+ msbuild cc65.sln /p:configuration=release /consoleloggerparameters:disableconsolecolor /target:$@
+
+endif # cmd.exe