From 4f88655a79bb2d8f10bdce2841f427c0e27040bd Mon Sep 17 00:00:00 2001 From: shinny Date: Tue, 2 Jun 2020 14:51:57 -0400 Subject: update tools --- tools/gbafix/Makefile | 7 +++++-- tools/gbafix/gbafix.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/gbafix') 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