summaryrefslogtreecommitdiff
path: root/utils/nwztools/plattools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nwztools/plattools/Makefile')
-rw-r--r--utils/nwztools/plattools/Makefile17
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 @@
1PREFIX?=arm-sony-linux-gnueabi-
2CC=$(PREFIX)gcc
3LD=$(PREFIX)gcc
4CFLAGS=-std=gnu99 -Wall -O2
5INCLUDES=-I.
6
7LIB_FILES=nwz_lib.c
8ALL_BUT_LIB=$(patsubst %.c,%.elf,$(filter-out $(LIB_FILES),$(wildcard *.c)))
9
10all: $(ALL_BUT_LIB)
11
12%.elf: %.c $(LIB_FILES)
13 $(CC) $(CFLAGS) $(INCLUDES) -o $@ $^
14
15clean:
16 rm -rf $(ALL_BUT_LIB)
17