首页 > 代码库 > 老大写得一个很高大上的Makefile,包含很多语法:
老大写得一个很高大上的Makefile,包含很多语法:
一个很高大上的Makefile,包含很多语法:
TARGET = api-login INSTALL_PATH = /huishoubao/cgi include ../../implements/log/Makefile.log include ../../implements/tools/Makefile.tools include ../../implements/db/Makefile.db include ../../implements/configure/Makefile.configure include ../../implements/protocol/Makefile.protocol include ../../implements/user/Makefile.user include ../../implements/logic/Makefile.logic vpath %.cpp ../../implements/log vpath %.cpp ../../implements/tools vpath %.cpp ../../implements/db vpath %.cpp ../../implements/configure vpath %.cpp ../../implements/protocol vpath %.cpp ../../implements/user vpath %.cpp ../../implements/logic INCLUDES = -I/usr/local/include/log4cplus -I/usr/local/include/ClearSilver -I/usr/include/mysql -I../../implements/log -I../../implements/tools -I../../implements/db -I../../implements/configure -I../../implements/protocol -I../../implements/user -I../../implements/logic LIBDIRS = -L/usr/local/lib -L/usr/lib64/mysql LIBS += -lfcgi -ljson -lmysqlclient -llog4cplus -lpthread -lcrypto -lmemcached -lneo_cgi -lneo_utl -lneo_cs -lcurl CC = gcc CXX = g++ CXXFLAGES += -Wall -O2 LDFLAGS = -Wl,-R /usr/local/lib RM = rm -f CP = cp -f SOURCES += api-login.cpp OBJECTS = $(SOURCES:.cpp=.o) .PHONY : all clean install mem all:$(TARGET) mem: $(CXX) -c -std=c++0x ../../implements/tools/memcached.cpp -o memcached.o $(TARGET):$(OBJECTS) $(CXX) -o $(TARGET) memcached.o $(OBJECTS) $(LDFLAGS) $(LIBDIRS) $(LIBS) $(OBJECTS):%.o:%.cpp $(CXX) -c $(CXXFLAGES) $(INCLUDES) $< -o $@ clean: -$(RM) $(TARGET) $(OBJECTS) memcached.o install: -$(CP) $(TARGET) $(INSTALL_PATH)/$(TARGET) -$(CP) ../../implements/log/log4cplus.properties /data/log/
老大写得一个很高大上的Makefile,包含很多语法:
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。