summaryrefslogtreecommitdiff
path: root/tools/gbafix
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2020-12-17 13:17:58 -0600
committerGitHub <noreply@github.com>2020-12-17 13:17:58 -0600
commit096de8d9b2ffd90c52e790296bfd7c5436d45ca3 (patch)
tree9c5af2e04dea05221c71946a5dfc06471f77801d /tools/gbafix
parentbc504264f1e54b3c1e482710c592e5549828bfe1 (diff)
parentf90f3affeb9b0a66aa7df68f5fdecd692033faf9 (diff)
Merge pull request #12 from SethBarberee/master
Merge work from SethBarberee/pmd-red into pret.
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])
{