Makefile 327 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
16
17

$(TOOLS): Makefile sunxi-tools.h

%: %.c %.h
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
18

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