This repository has been archived on 2018-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
BBB-Simple-ACS/client/lib/Makefile

21 lines
463 B
Makefile

SOURCES = $(wildcard *.cpp)
HEADERS = $(wildcard *.hpp)
OBJECTS = $(SOURCES:%.cpp=%.o)
LIBRARY = libacsdriver.so
CXXFLAGS = -Wall -c -fpic -g -O0 -std=c++14 -o
LDFLAGS = -shared
all: ${OBJECTS} ${LIBRARY}
${LIBRARY}: ${OBJECTS}
${CXX} -o $@ ${OBJECTS} ${LDFLAGS}
${OBJECTS}:
${CXX} ${CXXFLAGS} $@ ${@:%.o=%.cpp}
clean:
rm -f ${LIBRARY} ${OBJECTS}
install:
cp -f ${HEADERS} /usr/include/acs-driver
cp ${LIBRARY} /usr/lib