dwarfinterpret/Makefile

37 lines
717 B
Makefile
Raw Permalink Normal View History

LIB_DIR=lib
TARGET=$(LIB_DIR)/libdwarfinterpret.so
2018-04-06 16:38:24 +02:00
SRC=src/DwarfInterpret.cpp src/MemoryMap.cpp
INCLUDE_DIR=include
CXX=g++
2018-04-03 13:52:40 +02:00
CXXFLAGS=-Wall -Wextra -O1 -g --std=c++14
CXXLIBS=-ldwarfpp -ldwarf -lelf -lc++fileno
CXXINCLUDE=-I$(INCLUDE_DIR)
OBJS = $(SRC:.cpp=.o)
###############################################################################
all: $(TARGET)
$(TARGET): $(OBJS)
mkdir -p "$$(dirname "$@")"
$(CXX) $(CXXFLAGS) $(CXXLIBS) $(CXXINCLUDE) $^ -shared -o "$@"
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(CXXINCLUDE) -fPIC -c "$<" -o "$@"
clean:
rm -f $(OBJS) $(TARGET)
docs:
doxygen Doxyfile
2018-04-12 13:40:34 +02:00
upload-docs:
rsync -ar docs/html/ \
www.tobast:/srv/httpd/tobast.fr/public_html/doc/DwarfInterpret
.PHONY: docs