diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..ee700e1 --- /dev/null +++ b/makefile @@ -0,0 +1,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: |