forked from creytiv/redemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (32 loc) · 772 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
#
# Makefile
#
# Copyright (C) 2011 Creytiv.com
#
PROJECT := redemo
VERSION := 0.4.1
DEMOS += sip_ua
DEMOS += tcp_server
DEMOS += udp_server
LIBRE_MK := $(shell [ -f ../re/mk/re.mk ] && \
echo "../re/mk/re.mk")
ifeq ($(LIBRE_MK),)
LIBRE_MK := $(shell [ -f /usr/share/re/re.mk ] && \
echo "/usr/share/re/re.mk")
endif
ifeq ($(LIBRE_MK),)
LIBRE_MK := $(shell [ -f /usr/local/share/re/re.mk ] && \
echo "/usr/local/share/re/re.mk")
endif
include $(LIBRE_MK)
CFLAGS += -I$(LIBRE_INC)
DEMO_MK := $(patsubst %,src/%/demo.mk,$(DEMOS))
DEMO_BLD := $(patsubst %,$(BUILD)/%,$(DEMOS))
BINS := $(patsubst %,%$(BIN_SUFFIX),$(DEMOS))
include $(DEMO_MK)
all: $(BINS)
$(BUILD): Makefile
@mkdir -p $(DEMO_BLD)
@touch $@
clean:
@rm -rf $(BINS) $(BUILD)