summaryrefslogtreecommitdiff
path: root/utils/e200tool/Makefile
blob: 63f82b9cddeff66ea567e68d86f4554867d88d5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
DEFINES=
CC=gcc
LD=gcc
CFLAGS=-O2 -g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES)
LDFLAGS=`pkg-config --libs libusb-1.0`
BINS=e200load

all: $(BINS)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

e200load: e200load.o
	$(LD) -o $@ $^ $(LDFLAGS)

clean:
	rm -fr *.o

veryclean:
	rm -rf $(BINS)