cpp-httplib/test/Makefile

17 lines
289 B
Makefile

USE_CLANG = 1
ifdef USE_CLANG
CC = clang++
CCFLAGS = -std=c++1y -stdlib=libc++ -g -DGTEST_USE_OWN_TR1_TUPLE
else
CC = g++-4.9
CCFLAGS = -std=c++1y -g
endif
all : test
./test
test : test.cc ../httplib.h
$(CC) -o test $(CCFLAGS) -I.. -I. test.cc gtest/gtest-all.cc gtest/gtest_main.cc