diff options
Diffstat (limited to 'tools/gbafix')
-rw-r--r-- | tools/gbafix/Makefile | 7 | ||||
-rw-r--r-- | tools/gbafix/gbafix.c | 2 |
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]) { |