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/Makefile
2023-12-14 02:22:17 -05:00

18 lines
393 B
Makefile

OUTPUT_DIR ?= .
TARGET_EXE=ucli
SOURCES=ucli.cc ucli-lib.cc unwind.cc symbol.cc accessors.cc elf.cc helpfun.cc
OBJECTS=$(SOURCES:.cc=.o)
CFLAGS=-g -O0
INCLUDES=-I/usr/include/elf
LIBS=-lunwind-x86_64 -lunwind -lelf
#-ldwarf -ldw
%.o: %.cc
$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@
$(TARGET_EXE): $(OBJECTS)
$(CXX) $^ $(LIBS) -o $(OUTPUT_DIR)/$@
clean:
$(RM) $(TARGET_EXE) $(OBJECTS)