|
|
@@ -18,10 +18,10 @@ ifeq ($(UNAME), Darwin) |
|
|
|
CXXFLAGS = -O3 -std=c++1y -DVERSION=\"$(GIT_VERSION)\" -DPLATFORM=\"$(PLATFORM)\" |
|
|
|
CFLAGS = -O3 -std=c11 -DVERSION=\"$(GIT_VERSION)\" |
|
|
|
WARNINGS = |
|
|
|
ifeq ("$(wildcard /usr/local/lib/libglfw3.dylib)","") |
|
|
|
ifeq ("$(wildcard /usr/local/lib/libglfw3.dylib)","") |
|
|
|
LIBS = -lglfw3 -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lGLEW -lfreetype -lharfbuzz -lmbedtls -lmbedcrypto -lmbedx509 |
|
|
|
else |
|
|
|
ifeq ("$(wildcard /usr/local/lib/libglfw.3.dylib)","") |
|
|
|
ifeq ("$(wildcard /usr/local/lib/libglfw.3.dylib)","") |
|
|
|
LIBS = -lglfw.3 -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lGLEW -lfreetype -lharfbuzz -lmbedtls -lmbedcrypto -lmbedx509 |
|
|
|
else |
|
|
|
LIBS = -lglfw -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lGLEW -lfreetype -lharfbuzz -lmbedtls -lmbedcrypto -lmbedx509 |
|
|
@@ -66,11 +66,18 @@ $(OBJDIR)/platform/slre.o: $(SRCDIR)/platform/slre.c |
|
|
|
$(DEPDIR)/%d: ; |
|
|
|
.PRECIOUS: $(DEPDIR)/%.d |
|
|
|
|
|
|
|
test-jscpp.o: tests/testPrograms/JSParserTest.cpp |
|
|
|
$(CXX) -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td $(CXXFLAGS) $(INCPATH) $(WARINGS) -c -o $@ $< |
|
|
|
|
|
|
|
test-js: test-jscpp.o $(OBJDIR)/parsers/scripting/javascript/JSParser.o $(OBJDIR)/tools/StringUtils.o |
|
|
|
$(LINK) $(LDFLAGS) -o $@ test-jscpp.o $(OBJDIR)/parsers/scripting/javascript/JSParser.o $(OBJDIR)/tools/StringUtils.o $(LIBS) |
|
|
|
|
|
|
|
|
|
|
|
test-url.o: tests/testPrograms/URLtest.cpp |
|
|
|
$(CXX) -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td $(CXXFLAGS) $(INCPATH) $(WARINGS) -c -o $@ $< |
|
|
|
|
|
|
|
ntr-run-tests: test-url.o $(OBJDIR)/tools/URL.o $(OBJDIR)/tools/StringUtils.o |
|
|
|
$(LINK) $(LDFLAGS) -o $@ test-url.o $(OBJDIR)/URL.o $(OBJDIR)/StringUtils.o $(LIBS) |
|
|
|
$(LINK) $(LDFLAGS) -o $@ test-url.o $(OBJDIR)/URL.o $(OBJDIR)/tools/StringUtils.o $(LIBS) |
|
|
|
|
|
|
|
ntr-test-cfg: test-cfg.o $(OBJDIR)/tools/CFGFileParser.o $(OBJDIR)/platform/slre.o $(OBJDIR)/platform/tlsf.o $(OBJDIR)/platform/Murmur3.o |
|
|
|
$(LINK) $(LDFLAGS) -o $@ $^ $(LIBS) |