-
Notifications
You must be signed in to change notification settings - Fork 241
/
Makefile
49 lines (42 loc) · 996 Bytes
/
Makefile
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
44
45
46
47
48
49
ARCHBITS ?= # 32/64 bits
ifeq ($(shell uname -m), x86_64)
ARCHBITS = 64
else ifeq ($(shell getconf LONG_BIT), 64)
ARCHBITS = 64
else ifeq ($(shell arch), x86_64)
ARCHBITS = 64
endif
ifdef PLATFORM
CROSS:=$(PLATFORM)-
else
OSID := $(shell awk -F'=' '/^ID=/ {print $$2}' /etc/os-release | tr -d '"')
OSVERSIONID := $(shell awk -F'=' '/^VERSION_ID=/ {print $$2"-"}' /etc/os-release | tr -d '"')
CROSS:=
PLATFORM:=${OSID}$(OSVERSIONID)linux$(ARCHBITS)
endif
ifeq ($(RELEASE),1)
BUILD:=release
else
BUILD:=debug
endif
all:
$(MAKE) -C libsdk
$(MAKE) -C libaio
$(MAKE) -C libhttp
$(MAKE) -C libice
clean:
$(MAKE) -C libsdk clean
$(MAKE) -C libaio clean
$(MAKE) -C libhttp clean
$(MAKE) -C libice clean
$(MAKE) -C test clean
debug:
$(MAKE) -C libsdk debug
$(MAKE) -C libaio debug
$(MAKE) -C libhttp debug
$(MAKE) -C libice debug
$(MAKE) -C test debug
.PHONY : test
test:
$(MAKE) -C test
cd libaio/$(BUILD).$(PLATFORM) && ../../test/$(BUILD).$(PLATFORM)/test