-
Notifications
You must be signed in to change notification settings - Fork 79
/
Makefile
49 lines (35 loc) · 1.22 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
all: g13d pbm2lpbm
FLAGS=$(CXXFLAGS) -DBOOST_LOG_DYN_LINK -std=c++0x
LIBS=-lusb-1.0 -lboost_log -lboost_log_setup-mt -lboost_thread -lboost_system-mt -lpthread
g13.o: g13.h helper.hpp g13.cc
g++ $(FLAGS) -c g13.cc
g13_main.o: g13.h helper.hpp g13_main.cc
g++ $(FLAGS) -c g13_main.cc
g13_log.o: g13.h helper.hpp g13_log.cc
g++ $(FLAGS) -c g13_log.cc
g13_fonts.o: g13.h helper.hpp g13_fonts.cc
g++ $(FLAGS) -c g13_fonts.cc
g13_lcd.o: g13.h helper.hpp g13_lcd.cc
g++ $(FLAGS) -c g13_lcd.cc
g13_stick.o: g13.h helper.hpp g13_stick.cc
g++ $(FLAGS) -c g13_stick.cc
g13_keys.o: g13.h helper.hpp g13_keys.cc
g++ $(FLAGS) -c g13_keys.cc
helper.o: helper.hpp helper.cpp
g++ $(FLAGS) -c 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 \
-lusb-1.0 -lboost_program_options \
-lboost_log \
-lboost_system -lpthread
pbm2lpbm: pbm2lpbm.c
g++ -o pbm2lpbm pbm2lpbm.c
package:
rm -Rf g13-userspace
mkdir g13-userspace
cp g13.cc g13.h logo.h Makefile pbm2lpbm.c g13-userspace
tar cjf g13-userspace.tbz2 g13-userspace
rm -Rf g13-userspace
clean:
rm -f g13d pbm2lpbm *.o