-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 866 Bytes
/
Makefile
File metadata and controls
43 lines (33 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
BUILD_DIR := build
CACHE_DIR := .cache
PLATFORM := $(shell uname -s | tr 'A-Z' 'a-z')
ARCH := $(shell uname -m)
CC := clang
override CFLAGS += -Weverything -Wall -Wextra -pedantic -std=gnu99
CPP := clang++
override CPPFLAGS += -std=c++11 -Wall -pedantic
ifeq ($(DEBUG), yes)
override CFLAGS += -g3
override CPPFLAGS += -g3
else
override CFLAGS += -Os
override CPPFLAGS += -Os
endif
GMOCK ?= gmock-1.7.0
GTEST ?= $(GMOCK)/gtest
GTEST_A = $(GTEST)/lib/.libs/libgtest.a
GMOCK_A = $(GMOCK)/lib/.libs/libgmock.a
$(info Build directory is '$(BUILD_DIR)')
$(info Cache directory is '$(CACHE_DIR)')
all: webperf
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
include mk/platform/$(PLATFORM).mk
include leone-tools/Dir.mk
include leone-dns-library/Dir.mk
include libhurl/Dir.mk
include webperf/Dir.mk
include mk/*.mk
clean:
rm -rf $(BUILD_DIR)
.PHONY: clean