summaryrefslogtreecommitdiff
path: root/util/bimgtool/Makefile
blob: 3bd0f07a7dd713abc4bec9ffdd3e11b5e0c6d249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
obj ?= $(shell pwd)

HOSTCC ?= gcc
CFLAGS ?= -g
CFLAGS += -D_7ZIP_ST
CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
CFLAGS += -Wstrict-aliasing -Wshadow -Werror
LDFLAGS += -g

all: dep $(obj)/bimgtool

clean:
	rm -f $(obj)/bimgtool

$(obj)/bimgtool: bimgtool.c
	$(HOSTCC) $(CFLAGS) -o $@ $^