You've already forked cpp-httplib
Added 'hello' example.
This commit is contained in:
@ -3,15 +3,20 @@ USE_CLANG = 1
|
||||
|
||||
ifdef USE_CLANG
|
||||
CC = clang++
|
||||
CFLAGS = -std=c++0x -stdlib=libc++
|
||||
CFLAGS = -std=c++0x -stdlib=libc++ -g
|
||||
else
|
||||
CC = g++
|
||||
CFLAGS = -std=c++11
|
||||
CFLAGS = -std=c++11 -g
|
||||
endif
|
||||
|
||||
all: sample hello
|
||||
|
||||
sample : sample.cc ../httpsvrkit.h
|
||||
$(CC) -o sample $(CFLAGS) -I.. sample.cc
|
||||
|
||||
hello : hello.cc ../httpsvrkit.h
|
||||
$(CC) -o hello $(CFLAGS) -I.. hello.cc
|
||||
|
||||
.PHONY : test
|
||||
test: sample
|
||||
./sample
|
||||
|
Reference in New Issue
Block a user