summaryrefslogtreecommitdiff
path: root/tools/scaninc
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-12-16 15:10:01 -0500
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-12-16 15:10:01 -0500
commit936ba7f1bf492a805596716660cd751e35fc74cd (patch)
tree335567b37e532c375b8d8b7cd446c79aee96fb24 /tools/scaninc
parent34fc9789c9d11464161aabf022eb270597c6778a (diff)
Apply all source related changes for the new INSTALL.md in one commit.
For people who want to have dkPless builds in their repo.
Diffstat (limited to 'tools/scaninc')
-rw-r--r--tools/scaninc/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/scaninc/Makefile b/tools/scaninc/Makefile
index 52e663d8d..96d92f706 100644
--- a/tools/scaninc/Makefile
+++ b/tools/scaninc/Makefile
@@ -8,10 +8,16 @@ HEADERS := scaninc.h asm_file.h c_file.h source_file.h
.PHONY: all clean
-all: scaninc
+ifeq ($(OS),Windows_NT)
+EXE := .exe
+else
+EXE :=
+endif
+
+all: scaninc$(EXE)
@:
-scaninc: $(SRCS) $(HEADERS)
+scaninc$(EXE): $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
clean: