summaryrefslogtreecommitdiff
path: root/makefile
blob: ee700e105428223d843af7102252f6f84dc6255e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC=gcc
CFLAGS=-std=c99 -I.

all: example

example: burstExample rwExample

rwExample: ds1302
	$(CC) $(CFLAGS) examples/readwrite.c ds1302.o -l bcm2835 -o rwExample

burstExample: ds1302
	$(CC) $(CFLAGS) examples/burst.c ds1302.o -l bcm2835 -o burstExample

ds1302:
	$(CC) $(CFLAGS) -c ds1302.c

clean: .PHONY
	rm *.o burstExample rwExample

.PHONY: