Add gen-image tool
[renesas/vsp-tests.git] / src / Makefile
1 CROSS_COMPILE ?=
2
3 CC      := $(CROSS_COMPILE)gcc
4 CFLAGS  ?= -O0 -g -W -Wall -Wno-unused-parameter -Iinclude
5 LDFLAGS ?=
6 LIBS    := -lm
7 GEN-IMAGE := gen-image
8
9 %.o : %.c
10         $(CC) $(CFLAGS) -c -o $@ $<
11
12 all: $(GEN-IMAGE)
13
14 $(GEN-IMAGE): gen-image.o
15         $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
16
17 clean:
18         -rm -f *.o
19         -rm -f $(GEN-IMAGE)
20
21 install:
22         cp $(GEN-IMAGE) $(INSTALL_DIR)/