summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorzy <[email protected]>2023-11-27 02:56:12 -0500
committerzy <[email protected]>2023-11-27 02:56:12 -0500
commitc5ea8285d765f836ad65cd1aee911b54cb246160 (patch)
tree26183bb06af39e3bc2d6edae74596c6a31369248 /source
parent49fb0b5f2ec2d897072768a4634bc5beb0818143 (diff)
makefile: merge ucli
Diffstat (limited to 'source')
-rw-r--r--source/ucli/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/ucli/Makefile b/source/ucli/Makefile
index fa87363..b94ef76 100644
--- a/source/ucli/Makefile
+++ b/source/ucli/Makefile
@@ -1,3 +1,4 @@
+OUTPUT_DIR ?= .
TARGET_EXE=ucli
SOURCES=ucli.cc ucli-lib.cc unwind.cc symbol.cc accessors.cc elf.cc
OBJECTS=$(SOURCES:.cc=.o)
@@ -10,7 +11,7 @@ LIBS=-lunwind-x86_64 -lunwind -lelf
$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@
$(TARGET_EXE): $(OBJECTS)
- $(CXX) $^ $(LIBS) -o $@
+ $(CXX) $^ $(LIBS) -o $(OUTPUT_DIR)/$@
clean:
$(RM) $(TARGET_EXE) $(OBJECTS) \ No newline at end of file