summaryrefslogtreecommitdiff
path: root/tools/gbafix
diff options
context:
space:
mode:
authorshinny <shinny456@users.noreply.github.com>2020-06-02 14:51:57 -0400
committershinny <shinny456@users.noreply.github.com>2020-06-02 14:51:57 -0400
commit4f88655a79bb2d8f10bdce2841f427c0e27040bd (patch)
treeb750e64b62cec61ca3a43da6aa7d4e3b37e64c9e /tools/gbafix
parentbc504264f1e54b3c1e482710c592e5549828bfe1 (diff)
update tools
Diffstat (limited to 'tools/gbafix')
-rw-r--r--tools/gbafix/Makefile7
-rw-r--r--tools/gbafix/gbafix.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/tools/gbafix/Makefile b/tools/gbafix/Makefile
index f12c8cc..91a60a9 100644
--- a/tools/gbafix/Makefile
+++ b/tools/gbafix/Makefile
@@ -1,8 +1,11 @@
-CC = gcc
-.PHONY: clean
+CC ?= gcc
+.PHONY: all clean
SRCS = gbafix.c
+all: gbafix
+ @:
+
gbafix: $(SRCS)
$(CC) $(SRCS) -o $@ $(LDFLAGS)
diff --git a/tools/gbafix/gbafix.c b/tools/gbafix/gbafix.c
index 9088cdc..598e43a 100644
--- a/tools/gbafix/gbafix.c
+++ b/tools/gbafix/gbafix.c
@@ -206,7 +206,7 @@ int main(int argc, char *argv[])
// parse command line
for (arg=1; arg<argc; arg++)
{
- if ((ARGV[0] == '-'))
+ if (ARGV[0] == '-')
{
switch (ARGV[1])
{