rockbox/utils/nwztools/plattools/Makefile
Amaury Pouly 0a2290653b nwztools/plattools: rework/clean and add an all-in-one tool
This new tool (all_tools) embeds all the other tools and provides a menu to
choose which one to run.

Change-Id: I0e07864dd46559a7079b0f942c25155e6fa07112
2016-10-31 17:50:16 +01:00

21 lines
528 B
Makefile

PREFIX?=arm-sony-linux-gnueabi-
CC=$(PREFIX)gcc
LD=$(PREFIX)gcc
CFLAGS=-std=gnu99 -Wall -O2
INCLUDES=-I.
LIB_FILES=nwz_lib.c nwz_lib_devlist.c
TOOL_FILES=dest_tool.c test_adc.c test_adc.c test_bl.c test_display.c \
test_keys.c test_power.c test_ts.c
ALL_ELF=$(patsubst %.c,%.elf,$(TOOL_FILES)) all_tools.elf
all: $(ALL_ELF)
%.elf: %.c $(LIB_FILES)
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $^
all_tools.elf: all_tools.c $(TOOL_FILES) $(LIB_FILES)
$(CC) $(CFLAGS) -DNWZ_EMBED_TOOLS $(INCLUDES) -o $@ $^
clean:
rm -rf $(ALL_ELF)