forked from woxiaoniu/SillyEcho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·57 lines (39 loc) · 1.12 KB
/
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
50
51
52
53
54
55
# $Id: Makefile,v 0.0.1 CBB $
#
# Author: Zengchao
# Contact: zengchao@cqu.edu.cn
# Licence: Belong to the author
# Date: 2017.12.23
#
CBB_BASE:=$(shell if [ -n "$$CBB_BASE" ] ; then\
echo $$CBB_BASE;\
else\
cd $(dir $(lastword $(MAKEFILE_LIST))); while /usr/bin/test ! -e RELEASE ; do \
dir=`cd ../;pwd`; \
if [ "$$dir" = "/" ] ; then \
echo Cannot find CBB_BASE in $(lastword $(MAKEFILE_LIST)) 1>&2; \
exit 1; \
fi ; \
cd $$dir; \
done ; \
pwd; \
fi)
ifeq ($(CBB_BASE),)
$(error Please run this in a tree)
endif
export CBB_BASE
include $(CBB_BASE)/make/Make.generic
subdirs:= src
target_path = $(CBB_BIN)
#targetname = $(CBB_BIN)/si.out
CBB_INCLUDE_PATH += -I $(READLINE_PATH)/include
LDFLAGS += -L $(CBB_LIB) -lasound -lcurl -lmsc -lmad
#LDFLAGS += -L $(CBB_LIB) -lcurl
LDFLAGS += -lrt -lz -ldl
#LDFLAGS += -lrt -lpthread -ldl -lz
#LDFLAGS += -L $(READLINE_PATH)/lib -lreadline
#LDFLAGS += -L $(NCURSES_PATH)/lib -lncurses
#other_libs_objs += $(CBB_LIB)/libshell.a
#other_libs_objs += $(CBB_LIB)/libcore.a
include $(CBB_BASE)/make/Make.target
include $(CBB_BASE)/make/Make.subdirs