This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-variable-monitor/source/ucli_py/libunwind/Makefile

18 lines
344 B
Makefile

TARGET_SO=libunwind.so
SOURCES=unwind.cc symbol.cc accessors.cc elf.cc
OBJECTS=$(SOURCES:.cc=.o)
INCLUDES=-I/usr/include/elf
CFLAGS=-g -O0 -fPIC
LFLAGS=-shared
%.o: %.cc
$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@
$(TARGET_SO): $(OBJECTS)
$(CXX) $(LFLAGS) $^ -o $@ -lunwind-x86_64 -lunwind -lelf
clean:
rm -f $(TARGET_SO) $(OBJECTS)