-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 922 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Makefile:
#
# Make the program on the Raspberry Pi
#
###############################################################################
#DEBUG = -g -O0
DEBUG = -O2
CC = gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -g -Wall -lm $(INCLUDE) -Winline -pipe
LDFLAGS = -L/usr/local/lib
LIBS = -lm -lpthread -lwiringPi -lgeniePi
SRC = $(wildcard *.c)
# May not need to alter anything below this line
###############################################################################
OBJ = $(SRC:.c=.o)
BINS = $(SRC:.c=)
Weather: main.o bmp.o smbus.o as3935.o
@echo [link]
@$(CC) -o $@ main.o bmp.o smbus.o as3935.o $(LDFLAGS) $(LIBS)
bmp.o: bmp.h
as3935.o: as3935.h
.c.o:
@echo [Compile] $<
@$(CC) -c $(CFLAGS) $< -o $@
.PHONEY: clean
clean:
rm -f $(OBJ) $(BINS) *~ core tags *.bak
.PHONEY: tags
tags: $(SRC)
@echo [ctags]
@ctags $(SRC)
.PHONEY: depend
depend:
makedepend -Y $(SRC)
# DO NOT DELETE