aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 058c0b7d8481b92acac00f957f838c76272b219d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

CFLAGS		= -Wall -Werror -Wextra

.PHONY: all
all: casio-get screen-to-xpm

screen-to-xpm: screen-to-xpm.o packet.o
	$(CC) -o $@ $^ $(LDFLAGS)

casio-get: casio-get.o error.o port.o packet.o
	$(CC) -o $@ $^ $(LDFLAGS) -lserialport


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


.PHONY: clean
clean:
	rm -fv casio-get screen-to-xpm *.o