mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
moidfy cmlib_deps
This commit is contained in:
parent
4078887be5
commit
a90d37dae7
7
Makefile
7
Makefile
@ -8,8 +8,9 @@ DOLINK = $(LINK) $(LINKOPT) -o $@ $^
|
|||||||
SOURCES := $(wildcard *.cpp)
|
SOURCES := $(wildcard *.cpp)
|
||||||
OBJS := $(patsubst %.cpp,%.o,$(SOURCES))
|
OBJS := $(patsubst %.cpp,%.o,$(SOURCES))
|
||||||
|
|
||||||
CMDIR = ./cppcommon/
|
CMDIR = ./cppcommon
|
||||||
CMLIB = $(CMDIR)cmlib.a
|
CMLIB = $(CMDIR)/cmlib.a
|
||||||
|
CMLIB_DEPS := $(wildcard $(CMDIR)/*)
|
||||||
|
|
||||||
|
|
||||||
# remove the objs after compilation
|
# remove the objs after compilation
|
||||||
@ -28,7 +29,7 @@ all: main
|
|||||||
main: $(OBJS) $(CMLIB)
|
main: $(OBJS) $(CMLIB)
|
||||||
$(DOLINK)
|
$(DOLINK)
|
||||||
|
|
||||||
$(CMLIB): $(CMDIR)
|
$(CMLIB): $(CMLIB_DEPS)
|
||||||
cd $(CMDIR) && $(MAKE)
|
cd $(CMDIR) && $(MAKE)
|
||||||
|
|
||||||
#unit test
|
#unit test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user