-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (17 loc) · 796 Bytes
/
Copy pathMakefile
File metadata and controls
22 lines (17 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -----------------------------------------------------------
# Makefile for Sense HAT C++ lab programs
# -----------------------------------------------------------
CXXFLAGS= -Wall -Wextra -Wduplicated-cond -Wduplicated-branches -Wsign-conversion -Wlogical-op -Wuseless-cast -Werror -pedantic -std=gnu++23
LIBLIST= -lsensehat-c++ -lpng -li2c -lm -lRTIMULib -lgpiod
LIBDEP=/usr/local/lib/libsensehat-c++.so.0
# -----------------------------------------------------------
# C++ language programs
# -----------------------------------------------------------
CXX_SOURCES=$(wildcard *.cpp)
CXX_TARGETS=$(CXX_SOURCES:.cpp=)
all: ${CXX_TARGETS}
%: %.cpp ${LIBDEP}
${CXX} ${CXXFLAGS} -o $@ $< ${LIBLIST}
# -----------------------------------------------------------
clean:
rm -f ${CXX_TARGETS}