31 lines
674 B
Text
31 lines
674 B
Text
|
include build/arch.mk
|
||
|
include build/configs.mk
|
||
|
|
||
|
NAME = testprog
|
||
|
TYPE = exe
|
||
|
|
||
|
# Any C++ file in src/ is automatically picked up.
|
||
|
CXXSRCS = testprog.cpp
|
||
|
|
||
|
# Required libraries.
|
||
|
LIBS = kernel32.lib shell32.lib user32.lib uuid.lib ole32.lib
|
||
|
|
||
|
.PHONY: all clean matrix
|
||
|
|
||
|
include build/rules.mk
|
||
|
|
||
|
all: $(BUILD_PRODUCT)
|
||
|
|
||
|
clean:
|
||
|
echo -e "\e[91mCleaning... \e[0m"
|
||
|
rm -rf $(BINDIR)/ $(OBJS)
|
||
|
|
||
|
# A fun make trick. This allows for verbose compilation if desired.
|
||
|
# Set V=1 or anything, and it'll be verbose.
|
||
|
$V.SILENT:
|
||
|
|
||
|
# Include dependency files generated by compilation.
|
||
|
# `make clean` keeps them so we can reuse, however they can
|
||
|
# still optionally be blown away.
|
||
|
-include $(OBJS:.o=.d)
|