ROOT=..
|
EXTRALIBS+=
|
INCLUDE+=-I. -I$(ROOT)/algorithm/include -I$(ROOT)/algorithm -I$(ROOT)/common/include
|
LIBCOMMON=$(ROOT)/common/libusgcommon.a
|
LIBALG=$(ROOT)/algorithm/libalg.a
|
LDLIBS = -lpthread
|
PLATFORM=$(shell $(ROOT)/systype.sh)
|
include $(ROOT)/Make.defines.$(PLATFORM)
|
|
|
PROGS = test_right_walk test_right_walk3
|
|
|
|
all: $(PROGS)
|
|
|
# 如果包A 引用包B, B 要放在 A 后面
|
test_right_walk: $(LIBALG) $(LIBCOMMON)
|
|
test_right_walk3: $(LIBALG) $(LIBCOMMON)
|
|
#test_right_walk: $(ROOT)/algorithm/graph.c $(ROOT)/algorithm/IndirectAlg.c $(LIBCOMMON)
|
test_right_walk2: test_right_walk2.c
|
#g++ -std=c++11 -mcx16 -Wall -DLINUX -D_GNU_SOURCE test_right_walk2.c -o $@ -lalg -lusgcommon
|
g++ -std=c++11 test_right_walk2.c -o test_right_walk2 -lalg -lusgcommon -lpthread
|
|
|
|
clean:
|
rm -f $(PROGS) $(TEMPFILES)
|
|
|
$(LIBCOMMON):
|
(cd $(ROOT)/common && $(MAKE))
|
|
$(LIBALG):
|
(cd $(ROOT)/algorithm && $(MAKE))
|