📄 makefile
字号:
# Porting notes:# For Solaris and other platforms where the logf function# is missing from the math library, add the following line# to the end of muscle.h:# #define logf(x) ((float) log(x))# Using -static increases the executable size and thus gives a very# small increase in start time, but is more portable (the binding# to dynamic libraries often breaks when a new library is released).# On OSX, using -static gives the error "ld: can't locate file for: -lcrt0.o",# this is fixed by deleting "-static" from the LDLIBS line.CFLAGS = -O3 -funroll-loops -Winline -DNDEBUG=1LDLIBS = -lm -static# LDLIBS = -lmOBJ = .oEXE =RM = rm -fCP = cpGPP = g++LD = $(GPP) $(CFLAGS)CPP = $(GPP) -c $(CFLAGS) all: muscleCPPSRC = $(sort $(wildcard *.cpp))CPPOBJ = $(subst .cpp,.o,$(CPPSRC))$(CPPOBJ): %.o: %.cpp $(CPP) $< -o $@muscle: $(CPPOBJ) $(LD) -o muscle $(CPPOBJ) $(LDLIBS) strip muscle
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -