summaryrefslogtreecommitdiffstats
path: root/utils/nwztools/plattools/Makefile
blob: d3efdb74a38d9d722fe3abf72785fbbcdec9e387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)