Makefile.svn-base
资源名称:cli.rar [点击查看]
上传用户:hujq123
上传日期:2016-04-10
资源大小:153k
文件大小:1k
源码类别:
Telnet服务器
开发平台:
Unix_Linux
- include ../Makefile.in
- LIBDIR = ./lib/
- LIB_NAME = cli
- LIB = $(LIBDIR)lib$(LIB_NAME).a
- LIBSO =
- #$(LIBDIR)lib$(LIB_NAME).so
- OBJDIR = ./build
- OBJS =
- tw_cli.o
- tw_cli_page.o
- tw_cli_misc_cmd.o
- OBJS := $(OBJS:%.o=$(OBJDIR)/%.o)
- all : $(LIB) $(LIBSO)
- $(LIB) : $(OBJS)
- @ echo "Create sllibrary $@"
- $(STATIC) $(LIB) $^
- rm ../lib/lib$(LIB_NAME).a -f
- cp $(LIB) ../lib
- $(LIBSO) : $(OBJS)
- @ echo "Create shared library $(LIBSO)"
- $(SHARE) $(LIBSO) $^
- rm ../lib/lib$(LIB_NAME).so -f
- cp $(LIBSO) ../lib
- $(OBJDIR)/%.o: %.cpp %.h
- @ echo "Compiling $@"
- $(CC) $(VM_INCLUDE) $(CFLAGS) -o $@ -c $<
- $(OBJDIR)/%.o: %.c %.h
- @ echo "Compiling $@"
- $(CC) $(VM_INCLUDE) $(CFLAGS) -o $@ -c $<
- test: main.cpp $(OBJS)
- $(CC) -o test main.cpp $(OBJS) $(CFLAGS) $(VM_INCLUDE) $(VM_LIBS)
- clean :
- rm $(OBJS) -f
- rm $(LIBSO) -f
- rm $(LIB) -f