2016-10-19 15:03:52 +00:00
|
|
|
PREFIX?=arm-sony-linux-gnueabi-
|
|
|
|
CC=$(PREFIX)gcc
|
|
|
|
LD=$(PREFIX)gcc
|
|
|
|
CFLAGS=-std=gnu99 -Wall -O2
|
|
|
|
INCLUDES=-I.
|
|
|
|
|
2016-10-28 21:27:29 +00:00
|
|
|
LIB_FILES=nwz_lib.c nwz_lib_devlist.c
|
2016-10-19 15:03:52 +00:00
|
|
|
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)
|
|
|
|
|