Makefile 265 Bytes
Newer Older
Alejandro Mery's avatar
Alejandro Mery committed
1
CC = gcc
2
CFLAGS = -g -O2 -Wall -Wextra -std=c99
Alejandro Mery's avatar
Alejandro Mery committed
3
4
5
6
7
8
9
10
11
12

TOOLS = bin2fex fex2bin

.PHONY: all clean

all: $(TOOLS)

clean:
	@rm -vf $(TOOLS)

13
14
15
$(TOOLS): sunxi-tools.h
bin2fex: bin2fex.h

Alejandro Mery's avatar
Alejandro Mery committed
16
17
18
19
20
.gitignore: Makefile
	@for x in $(TOOLS) '*.o' '*.swp'; do \
		echo $$x; \
	done > $@