代码拉取完成,页面将自动刷新
MAKEFILE = Makefile
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -std=c++14 # -Wextra -pedantic
CFLAGS = -O2 -Wall $(DEFINES)
CXXFLAGS = -O2 -Wall $(DEFINES)
INCPATH = -I.
LINK = g++
LFLAGS = -Wl,-O1
LIBS = $(SUBLIBS) # -lpthread -lstdc++
AR = ar cqs
RANLIB =
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = cp -f
COPY_DIR = cp -f -R
STRIP = strip
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = ./
####### Files
SOURCES =
OBJECTS = entropy.o main.o main_test.o commandline.o ## TODO: add all corresponding .o files here
DIST =
DESTDIR = #avoid trailing-slash linebreak
TARGET = test entropy
first: all
####### Implicit rules
# .SUFFIXES: .o .c .cpp .cc .cxx .C
# .cpp.o:
# $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
# .cc.o:
# $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
# .cxx.o:
# $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
# .C.o:
# $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
# .c.o:
# $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
####### Build rules
all: $(TARGET)
test: entropy.o main_test.o
$(LINK) $(LFLAGS) entropy.o main_test.o $(LIBS) -o test
entropy: entropy.o main.o commandline.o
$(LINK) $(LFLAGS) entropy.o main.o commandline.o $(LIBS) -o entropy
# $(TARGET): $(OBJECTS)
# $(LINK) $(LFLAGS) $(OBJECTS) $(OBJCOMP) $(LIBS) -o $(TARGET)
dist:
@test -d .tmp/test1.0.0 || mkdir -p .tmp/test1.0.0
$(COPY_FILE) --parents $(DIST) .tmp/test1.0.0/ && $(COPY_FILE) --parents hello.h .tmp/test1.0.0/ && $(COPY_FILE) --parents hello.cpp main.cpp .tmp/test1.0.0/ && (cd `dirname .tmp/test1.0.0` && $(TAR) test1.0.0.tar test1.0.0 && $(COMPRESS) test1.0.0.tar) && $(MOVE) `dirname .tmp/test1.0.0`/test1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/test1.0.0
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
distclean: clean
-$(DEL_FILE) $(TARGET)
####### Sub-libraries
check: first
compiler_clean:
####### Compile
# TODO: add all dependencies for the .o
commandline.o: commandline.cpp commandline.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o commandline.o commandline.cpp
entropy.o: entropy.cpp entropy.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o entropy.o entropy.cpp
main_test.o: main_test.cpp entropy.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main_test.o main_test.cpp
main.o: main.cpp entropy.h commandline.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。