makefile~

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

TXT
78
字号
#----------------------------------------------------------------------# Makefile for SVGAlib demo programs.## This file is a part of SVGAlib.#----------------------------------------------------------------------include ../Makefile.cfgsrcdir    = ..VPATH     = $(srcdir)/demos#----------------------------------------------------------------------# Compiler Section (overrides Makefile.cfg)#----------------------------------------------------------------------CFLAGS = $(WARN) $(OPTIMIZE) -I$(srcdir)/include -I$(srcdir)/gl $(DEBUG)ifeq (a.out, $(TARGET_FORMAT))  CFLAGS += -DSVGA_AOUTendif#----------------------------------------------------------------------# Rules Section#----------------------------------------------------------------------#PROGS    = fun testgl speedtest mousetest vgatest scrolltest testlinear \#	   keytest testaccel accel forktest eventtest spin bg_test printftest \#	   joytest mjoytest bankspeed lineart linearspeed addmodetest \#	   svidtune linearfork vgatweakPROGS	= test# Determine what library (static or shared) we will be linking programs withifdef INSTALLSHAREDLIB  LDFLAGS = -L${libdir}  LIBS = -lvgagl -lvgaendififndef LIBS  LIBS    = ../staticlib/libvgagl.a ../staticlib/libvga.a -lm  LVGADEP = $(LIBS)endifall:	$(PROGS).PHONY: all clean cleanbin dep$(PROGS): $(LVGADEP).c:	$(CC) $(CFLAGS) $(LDFLAGS) -o $* $*.c $(LIBS)	chown 0 $*	chmod 4755 $*rwpage: rwpage.pp	$(PC) -Rintel rwpage.pptestaccel: testaccel.c	$(CC) $(CFLAGS) $(LDFLAGS) -o testaccel testaccel.c $(LIBS) -lm	chown 0 testaccel	chmod 4755 testaccelaccel: accel.c	$(CC) $(CFLAGS) $(LDFLAGS) -o accel accel.c $(LIBS) -lm	chown 0 accel	chmod 4755 accelclean:	cleanbin	rm -f .depend *.o *~ *.bakcleanbin:	rm -f $(PROGS) rwpage## No dependencies required here.#dep:.depend:

⌨️ 快捷键说明

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