From a8aeab5d57eb08e409f9a61ca720a94e01c31533 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Sun, 5 May 2013 23:46:12 +0200
Subject: [PATCH] Added support for building the MS VS solution from the
Makefile.
---
src/Makefile | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
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
--
2.39.5