makefile

来自「linux 下svgalib编的一个界面程序示例」· 代码 · 共 55 行

TXT
55
字号
#----------------------------------------------------------------------# Makefile for plane and wrapdemo. See README file.## This file is a part of SVGAlib.#----------------------------------------------------------------------include ../Makefile.cfgsrcdir    = ..VPATH     = $(srcdir)/threeDKit#----------------------------------------------------------------------# Compiler Section (overrides Makefile.cfg)#----------------------------------------------------------------------LOCAL_DEFINES = -DSVGALIBCFLAGS = $(WARN) $(OPTIMIZE) -I$(srcdir)/include -I$(srcdir)/gl -I. $(LOCAL_DEFINES)DLLFLAGS  =#----------------------------------------------------------------------# Rules Section#----------------------------------------------------------------------OBJECTS = 3dinit.o 3dkit.o wrapsurf.o quickmath.o triangle.o striangle.o \	    wtriangle.o swtriangle.o# Determine what library (static or shared) we will be linking programs withifdef INSTALLSHAREDLIB  LIBS = -lm -lvgagl -lvgaendififndef LIBS  LIBS    = -lm ../staticlib/libvgagl.a ../staticlib/libvga.a  LVGADEP = ../staticlib/libvgagl.a ../staticlib/libvga.aendif.PHONY: cleanall: plane wrapdemoplane: planukit.o planinit.o $(OBJECTS) $(LVGADEP)	$(CC) $(LDFLAGS) -o plane planukit.o planinit.o $(OBJECTS) $(LIBS)	chown root plane	chmod u+s planewrapdemo: wrapdemo.o $(OBJECTS) $(LVGADEP)	$(CC) $(CFLAGS) $(LDFLAGS) -o wrapdemo wrapdemo.c $(OBJECTS) $(LIBS)	chown root wrapdemo	chmod u+s wrapdemo.c.o:	$(CC) $(CFLAGS) -c -o $*.o $<clean:	rm -f *.o plane wrapdemo

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?