-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
46 lines (35 loc) · 873 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
# Makefile:
#
# Make Visi-Genie Demos on the Raspberry Pi
#
# Gordon Henderson, December 2012
###############################################################################
#DEBUG = -g -O0
DEBUG = -O2
CC = gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
LDFLAGS = -L/usr/local/lib
LIBS = -lm -lpthread -lgeniePi
SRC = calculator.c
# May not need to alter anything below this line
###############################################################################
OBJ = $(SRC:.c=.o)
BINS = $(SRC:.c=)
calculator: calculator.o
@echo [link]
@$(CC) -o $@ calculator.o $(LDFLAGS) $(LIBS)
.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