summaryrefslogtreecommitdiff
path: root/tools/preproc/Makefile
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2021-11-04 21:07:26 +0000
committerGitHub <noreply@github.com>2021-11-04 14:07:26 -0700
commit681ca68ac96e8d39f49eb2c9f42e5c1e1041f5e0 (patch)
tree52a507350ab3fb83d1207b7ccf8266693c2f5a24 /tools/preproc/Makefile
parentf1394cbb03aa9fb1c928c6de1648ef459d2bf66b (diff)
Disassemble some more tables and the first graphic (#71)
* Sync tools/ directory with pokeemerald We really ought to have a central repository for this mess * Make incremental builds faster Scientists hate him! He made NODEP disappear with this ONE SIMPLE TRICK!!! Want to know more? -> __click here__ <- * Disassemble some more tables and the first graphic
Diffstat (limited to 'tools/preproc/Makefile')
-rw-r--r--tools/preproc/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/preproc/Makefile b/tools/preproc/Makefile
index 8c48afe..1507c97 100644
--- a/tools/preproc/Makefile
+++ b/tools/preproc/Makefile
@@ -8,12 +8,18 @@ SRCS := asm_file.cpp c_file.cpp charmap.cpp preproc.cpp string_parser.cpp \
HEADERS := asm_file.h c_file.h char_util.h charmap.h preproc.h string_parser.h \
utf8.h
+ifeq ($(OS),Windows_NT)
+EXE := .exe
+else
+EXE :=
+endif
+
.PHONY: all clean
-all: preproc
+all: preproc$(EXE)
@:
-preproc: $(SRCS) $(HEADERS)
+preproc$(EXE): $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
clean: