-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 796 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 796 Bytes
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
CXXFLAGS=-Wall -O3 -g
OBJECTS=matrix_clock.cpp matrix_color.cpp matrix_font.cpp text_line.cpp time_period.cpp variable_utility.cpp telegram_handler.cpp matrix_data.cpp matrix_timer.cpp
BINARIES=matrix_clock
RGB_INCDIR=../include
RGB_LIBDIR=../lib
RGB_LIBRARY_NAME=rgbmatrix
RGB_LIBRARY=$(RGB_LIBDIR)/lib$(RGB_LIBRARY_NAME).a
LDFLAGS+=-L$(RGB_LIBDIR) -l$(RGB_LIBRARY_NAME) -lrt -lm -lpthread -lcurl -ljsoncpp -lTgBot -lboost_system -lssl -lcrypto -lpthread -lwiringPi
all : matrix_clock
matrix_clock : $(OBJECTS) $(RGB_LIBRARY)
$(CXX) $(CXXFLAGS) $(OBJECTS) -I$(RGB_INCDIR) -o $@ $(LDFLAGS)
$(RGB_LIBRARY): FORCE
$(MAKE) -C $(RGB_LIBDIR)
%.o : %.cpp
$(CXX) -I$(RGB_INCDIR) $(CXXFLAGS) -c -o $@ $<
clean:
rm -f $(OBJECTS) $(BINARIES)
$(MAKE) -C $(RGB_LIBDIR) clean
FORCE:
.PHONY: FORCE