2020-01-01 13:16:40 -06:00
|
|
|
SHARED_TEST_SOURCES = \
|
|
|
|
../String.cpp \
|
|
|
|
../StringImpl.cpp \
|
|
|
|
../StringBuilder.cpp \
|
|
|
|
../StringView.cpp \
|
|
|
|
../LogStream.cpp \
|
|
|
|
../JsonValue.cpp \
|
|
|
|
../JsonParser.cpp \
|
|
|
|
../FileSystemPath.cpp \
|
|
|
|
../URL.cpp \
|
|
|
|
../Utf8View.cpp
|
2019-06-27 15:57:49 +02:00
|
|
|
|
2020-01-01 13:16:40 -06:00
|
|
|
SRCS = $(wildcard *.cpp)
|
|
|
|
SHARED_TEST_OBJS = ${SHARED_TEST_SOURCES:.cpp=.host.o}
|
|
|
|
OBJS = ${SRCS:.cpp=.host.o} $(SHARED_TEST_OBJS)
|
|
|
|
APPS = ${SRCS:.cpp=}
|
2019-06-27 15:57:49 +02:00
|
|
|
|
2020-01-01 13:16:40 -06:00
|
|
|
EXTRA_CLEAN = $(APPS) *.o
|
2019-08-07 20:05:36 +02:00
|
|
|
|
2020-01-01 13:16:40 -06:00
|
|
|
HOST_CXX = 1
|
2019-08-07 20:05:36 +02:00
|
|
|
|
2020-01-01 13:16:40 -06:00
|
|
|
include ../../Makefile.common
|
2019-08-07 20:05:36 +02:00
|
|
|
|
2020-01-01 13:16:40 -06:00
|
|
|
CXXFLAGS = -std=c++17 -Wall -Wextra -ggdb3 -O2 -I../ -I../../
|
2019-08-28 00:57:15 +03:00
|
|
|
|
2020-01-01 13:16:40 -06:00
|
|
|
APPS_RUN = $(addsuffix .run,$(APPS))
|
|
|
|
test: $(APPS) $(APPS_RUN)
|
|
|
|
$(APPS_RUN): %.run:
|
|
|
|
./$*
|
2019-10-23 12:20:45 +02:00
|
|
|
|
2020-01-01 13:16:40 -06:00
|
|
|
$(APPS): %: %$(OBJ_SUFFIX).o $(SHARED_TEST_OBJS)
|
|
|
|
@echo "LINK $@"
|
|
|
|
$(QUIET) $(CXX) -o $@ $< $(SHARED_TEST_OBJS) $(LDFLAGS)
|
2019-10-23 12:20:45 +02:00
|
|
|
|
2020-01-01 13:16:40 -06:00
|
|
|
all: | $(APPS) $(APPS_RUN)
|