-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
70 lines (50 loc) · 2.17 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
######################################
######################################
CXX=g++
CFLAGS=-Wall -c -O3
LDFLAGS=-Wall -O3
TARGETS = Beagle_GPIO.o \
Beagle_GPIO_test \
Beagle_GPIO_HD44780.o \
Beagle_GPIO_HD44780_test \
Beagle_GPIO_KS0108.o \
Beagle_GPIO_KS0108_test \
Beagle_GPIO_Nokia6100.o \
FrameBuffer.o \
Beagle_GPIO_Nokia6100_test \
Beagle_GPIO_Nokia6100_test_3d
all: $(TARGETS)
Beagle_GPIO.o: Beagle_GPIO.cc Beagle_GPIO.hh
@echo Compiling $< to $@
@$(CXX) $(CFLAGS) Beagle_GPIO.cc
Beagle_GPIO_HD44780.o: Beagle_GPIO_HD44780.cc Beagle_GPIO_HD44780.hh
@echo Compiling $< to $@
@$(CXX) $(CFLAGS) Beagle_GPIO_HD44780.cc -o $@
Beagle_GPIO_KS0108.o: Beagle_GPIO_KS0108.cc Beagle_GPIO_KS0108.hh
@echo Compiling $< to $@
@$(CXX) $(CFLAGS) Beagle_GPIO_KS0108.cc -o $@
Beagle_GPIO_Nokia6100.o: Beagle_GPIO_Nokia6100.cc Beagle_GPIO_Nokia6100.hh
@echo Compiling $< to $@
@$(CXX) $(CFLAGS) Beagle_GPIO_Nokia6100.cc -o $@
FrameBuffer.o: FrameBuffer.cc FrameBuffer.hh
@echo Compiling $< to $@
@$(CXX) $(CFLAGS) FrameBuffer.cc -o $@
Beagle_GPIO_test: Beagle_GPIO_test.cc Beagle_GPIO.o
@echo Compiling $< to $@
@$(CXX) $(LDLAGS) Beagle_GPIO_test.cc Beagle_GPIO.o -o Beagle_GPIO_test
Beagle_GPIO_HD44780_test: Beagle_GPIO_HD44780_test.cc Beagle_GPIO.o Beagle_GPIO_HD44780.o
@echo Compiling $< to $@
@$(CXX) $(LDLAGS) Beagle_GPIO_HD44780_test.cc Beagle_GPIO.o Beagle_GPIO_HD44780.o -o $@
Beagle_GPIO_KS0108_test: Beagle_GPIO_KS0108_test.cc Beagle_GPIO.o Beagle_GPIO_KS0108.o
@echo Compiling $< to $@
@$(CXX) $(LDLAGS) Beagle_GPIO_KS0108_test.cc Beagle_GPIO.o Beagle_GPIO_KS0108.o -o $@
Beagle_GPIO_Nokia6100_test: Beagle_GPIO_Nokia6100_test.cc Beagle_GPIO.o Beagle_GPIO_Nokia6100.o
@echo Compiling $< to $@
@$(CXX) $(LDLAGS) Beagle_GPIO_Nokia6100_test.cc Beagle_GPIO.o Beagle_GPIO_Nokia6100.o -o $@
Beagle_GPIO_Nokia6100_test_3d: Beagle_GPIO_Nokia6100_test_3d.cc Beagle_GPIO.o Beagle_GPIO_Nokia6100.o FrameBuffer.o
@echo Compiling $< to $@
@$(CXX) $(LDLAGS) Beagle_GPIO_Nokia6100_test_3d.cc Beagle_GPIO.o Beagle_GPIO_Nokia6100.o FrameBuffer.o -o $@
clean:
@rm -rf *~ *.o $(TARGETS)
######################################
######################################