makefile
来自「B-spline曲線是包含Bezier曲線的通用數學表示法。」· 代码 · 共 99 行
TXT
99 行
########################################################## ## Makefile for linux gcc ## ####################################################################################################################### specify the include paths###########################################################INCLUDE_DIR= -I/usr/X11R6/include############################################################# specify the lib directories###########################################################LIB_DIR= -L/usr/X11R6/lib############################################################# specify the librarys to link###########################################################LIBS= -lGL -lGLU -lglut -lXmu -lXi -lstdc++ -lm############################################################# specify a line to compile the source files. The first## version produces a release build. The second produces## a debug build###########################################################COMPILE= gcc -O2 $(INCLUDE_DIR)# COMPILE= gcc -g -I $(INCLUDE_DIR)############################################################# specify the output file###########################################################OUTPUT=bezierCurve############################################################# specify the input objects###########################################################OBJECTS= main.o############################################################# Everything is dependant on the output file###########################################################all : $(OUTPUT)############################################################# The output program is dependant on the input objects###########################################################$(OUTPUT) : $(OBJECTS) $(COMPILE) $(OBJECTS) $(LIB_DIR) $(LIBS) -o $(OUTPUT)############################################################# Compile each *.cpp file into a *.o file.###########################################################main.o : main.cpp $(COMPILE) -c main.cpp########################################################### A rule to delete all temp files##########################################################clean: rm $(OUTPUT) $(OBJECTS)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?