summaryrefslogtreecommitdiff
path: root/tools/patch_strtab/Makefile
diff options
context:
space:
mode:
authorMax <mparisi@stevens.edu>2020-09-23 13:11:06 -0400
committerMax <mparisi@stevens.edu>2020-09-23 13:11:06 -0400
commitf691f669cb4073e7e5b6b81102fdb68cfaf74390 (patch)
tree325b5d69a65a5d4a79d94bd4734b9dd9444dcaf8 /tools/patch_strtab/Makefile
parent0acf44f0b91fa912101901d292552bae55f2fa93 (diff)
added new tool patch_strtab for postprocessing of .o file, but needs more debugging
Diffstat (limited to 'tools/patch_strtab/Makefile')
-rw-r--r--tools/patch_strtab/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/patch_strtab/Makefile b/tools/patch_strtab/Makefile
new file mode 100644
index 0000000..b76d8dd
--- /dev/null
+++ b/tools/patch_strtab/Makefile
@@ -0,0 +1,20 @@
+CC := gcc
+CFLAGS := -O3 -std=c99 -Wall
+
+ifeq ($(OS),Windows_NT)
+EXE := .exe
+else
+EXE :=
+endif
+
+TARGET := patch_strtab$(EXE)
+
+.PHONY: all
+
+all: $(TARGET)
+
+clean:
+ rm -f patch_strtab patch_strtab.exe
+
+$(TARGET): patch_strtab.c
+ $(CC) $(CFLAGS) -o $@ $^