diff options
Diffstat (limited to 'utils/nwztools/plattools/Makefile')
-rw-r--r-- | utils/nwztools/plattools/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/nwztools/plattools/Makefile b/utils/nwztools/plattools/Makefile new file mode 100644 index 0000000000..d3efdb74a3 --- /dev/null +++ b/utils/nwztools/plattools/Makefile | |||
@@ -0,0 +1,17 @@ | |||
1 | PREFIX?=arm-sony-linux-gnueabi- | ||
2 | CC=$(PREFIX)gcc | ||
3 | LD=$(PREFIX)gcc | ||
4 | CFLAGS=-std=gnu99 -Wall -O2 | ||
5 | INCLUDES=-I. | ||
6 | |||
7 | LIB_FILES=nwz_lib.c | ||
8 | ALL_BUT_LIB=$(patsubst %.c,%.elf,$(filter-out $(LIB_FILES),$(wildcard *.c))) | ||
9 | |||
10 | all: $(ALL_BUT_LIB) | ||
11 | |||
12 | %.elf: %.c $(LIB_FILES) | ||
13 | $(CC) $(CFLAGS) $(INCLUDES) -o $@ $^ | ||
14 | |||
15 | clean: | ||
16 | rm -rf $(ALL_BUT_LIB) | ||
17 | |||