Clean up the Linux side of the build.

CLion on Windows missed a lot of stuff.
This commit is contained in:
2023-10-06 06:25:58 +00:00
parent f727ce4b5a
commit 36af6ac1f8
8 changed files with 27 additions and 25 deletions

View File

@@ -5,7 +5,7 @@ SOURCES := $(wildcard *.cc)
OBJS := Arena.o Dictionary.o TLV.o
CXX := clang++
CXXFLAGS := -g -std=c++14 -Werror -Wall
CXXFLAGS := -g -std=c++14 -Werror -Wall -DDESKTOP_BUILD
.PHONY: all
all: $(TARGET) $(TESTS) tags run-tests
@@ -17,10 +17,10 @@ $(TARGET): $(OBJS)
$(AR) rcs $@ $(OBJS)
tlv_test: tlvTest.o $(TARGET)
$(CXX) -o $@ $(CXXFLAGS) $@.o $(TARGET)
$(CXX) -o $@ $(CXXFLAGS) tlvTest.o $(TARGET)
dictionary_test: dictionaryTest.o $(TARGET)
$(CXX) -o $@ $(CXXFLAGS) $@.o $(TARGET)
$(CXX) -o $@ $(CXXFLAGS) dictionaryTest.o $(TARGET)
.PHONY: print-%
print-%: ; @echo '$(subst ','\'',$*=$($*))'