]> git.sur5r.net Git - cc65/commitdiff
Added support for building the MS VS solution from the Makefile.
authorOliver Schmidt <ol.sc@web.de>
Sun, 5 May 2013 21:46:12 +0000 (23:46 +0200)
committerOliver Schmidt <ol.sc@web.de>
Sun, 5 May 2013 21:46:12 +0000 (23:46 +0200)
src/Makefile

index 635c87470a599bfa600013e58297e525d269ba52..d5401e087c6a31464b8e1fa128d139667e11faf8 100644 (file)
@@ -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