forked from ecraven/g13
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (38 loc) · 1.29 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
all: g13d pbm2lpbm
FLAGS=$(CXXFLAGS) -std=c++0x
SLIBS=-lboost_system -lboost_program_options -lboost_log -lboost_log_setup -lboost_thread
DLIBS=-lusb-1.0 -lpthread
BUILDDIR=build
g13.o: src/g13.h src/helper.hpp src/g13.cc
g++ $(FLAGS) -c src/g13.cc
g13_main.o: src/g13.h src/helper.hpp src/g13_main.cc
g++ $(FLAGS) -c src/g13_main.cc
g13_log.o: src/g13.h src/helper.hpp src/g13_log.cc
g++ $(FLAGS) -c src/g13_log.cc
g13_fonts.o: src/g13.h src/helper.hpp src/g13_fonts.cc
g++ $(FLAGS) -c src/g13_fonts.cc
g13_lcd.o: src/g13.h src/helper.hpp src/g13_lcd.cc
g++ $(FLAGS) -c src/g13_lcd.cc
g13_stick.o: src/g13.h src/helper.hpp src/g13_stick.cc
g++ $(FLAGS) -c src/g13_stick.cc
g13_keys.o: src/g13.h src/helper.hpp src/g13_keys.cc
g++ $(FLAGS) -c src/g13_keys.cc
helper.o: src/helper.hpp src/helper.cpp
g++ $(FLAGS) -c src/helper.cpp
g13d: g13_main.o g13.o g13_log.o g13_fonts.o g13_lcd.o g13_stick.o g13_keys.o helper.o
g++ -o g13d -std=c++0x \
g13_main.o g13.o g13_log.o g13_fonts.o g13_lcd.o g13_stick.o g13_keys.o helper.o \
-lpthread \
-Wl,-Bstatic \
-lboost_system \
-lboost_program_options \
-lboost_log\
-lboost_log_setup\
-lboost_thread\
-Wl,-Bdynamic \
-lusb-1.0 \
-Wl,--as-needed
pbm2lpbm: src/pbm2lpbm.c
g++ -o pbm2lpbm src/pbm2lpbm.c
clean:
rm -f g13 pbm2lpbm