ba91ff10e8
This is code is intended to development into a library of code for the NWZ that will be useful to write the "bootloader" on those device. At the same time, it comes with test programs that are easy to run in firmware upgrade mode and also provide a great test bench for the library. At the moment, two test programs are available: - test_display: simply prints two messages using /usr/bin/lcdmsg - test_keys: displays input key event Change-Id: I9d214894ffc9127b528fcdd3eb5d6b61f4e657a7
17 lines
319 B
Makefile
17 lines
319 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
|
|
ALL_BUT_LIB=$(patsubst %.c,%.elf,$(filter-out $(LIB_FILES),$(wildcard *.c)))
|
|
|
|
all: $(ALL_BUT_LIB)
|
|
|
|
%.elf: %.c $(LIB_FILES)
|
|
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $^
|
|
|
|
clean:
|
|
rm -rf $(ALL_BUT_LIB)
|
|
|