paulbergmann_mpstubs/test-stream/Makefile

23 lines
479 B
Makefile
Raw Permalink Normal View History

2023-09-22 11:19:29 +02:00
VERBOSE = @
OBJDIR = build
CXX = g++
MKDIR = mkdir
CC_SOURCES = ../test-stream/console_out.cc ../test-stream/test.cc ../test-stream/file_out.cc ../object/outputstream.cc ../object/stringbuffer.cc
CXXFLAGS = -std=c++11 -m64 -I../object -I.
TARGET = $(OBJDIR)/test
all: run
run: $(TARGET)
@./$<
$(TARGET): $(CC_SOURCES)
$(VERBOSE) $(MKDIR) -p $(OBJDIR)
$(VERBOSE) $(CXX) -o $@ $(CXXFLAGS) $^
clean:
@echo "RM $(OBJDIR)"
$(VERBOSE) rm -rf $(OBJDIR)
.PHONY: all run clean