⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 一个很好的SDL建立应用程序界面的例子
💻
字号:
##  Makefile for SDL widget test##  Copyright 2003 by Jeffery L. Post#  theposts@pacbell.net##  Version 0.0.3 - 08/25/04##  This program is free software; you can redistribute it and/or modify#  it under the terms of the GNU General Public License as published by#  the Free Software Foundation; either version 2 of the License, or#  (at your option) any later version.##  This program is distributed in the hope that it will be useful,#  but WITHOUT ANY WARRANTY; without even the implied warranty of#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the#  GNU General Public License for more details.##  You should have received a copy of the GNU General Public License#  along with this program; if not, write to the Free Software#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.#CFLAGS=-Wall -O2 -fomit-frame-pointer `sdl-config --cflags` -DLINUX#CFLAGS=-Wall -ggdb `sdl-config --cflags` -DLINUXLIBS=-lm `sdl-config --libs`OBJS=test.o widgets.o fileselect.o fontsrc.oCC=gccWINCFLAGS=-Wall -O2 -fomit-frame-pointer -I/usr/local/cross-tools/include `sdl-config --cflags` -DWIN32WINLIBS=/usr/local/cross-tools/lib/SDL.dllWINOBJS=test.obj widgets.obj fileselect.obj fontsrc.objWINCC=/usr/local/cross-tools/bin/i386-mingw32msvc-gcc.PHONY: testtest: $(OBJS)	$(CC) $(CFLAGS) $(OBJS) -o test $(LIBS)	strip testtest.o: test.c test.h widgets.h fileselect.h	$(CC) $(CFLAGS) -c $< -o $@widgets.o: widgets.c widgets.h	$(CC) $(CFLAGS) -c $< -o $@fileselect.o: fileselect.c fileselect.h widgets.h	$(CC) $(CFLAGS) -c $< -o $@fontsrc.o: fontsrc.c	$(CC) $(CFLAGS) -c $< -o $@clean:	rm -f *.o	rm -f testwin:	test.exetest.exe: $(WINOBJS)	$(WINCC) $(WINCFLAGS) $(WINOBJS) $(WINLIBS) -mwindows -o test.exetest.obj: test.c test.h widgets.h	$(WINCC) $(WINCFLAGS) -c $< -o $@widgets.obj: widgets.c widgets.h	$(WINCC) $(WINCFLAGS) -c $< -o $@fileselect.obj: fileselect.c fileselect.h widgets.h	$(WINCC) $(WINCFLAGS) -c $< -o $@fontsrc.obj: fontsrc.c	$(WINCC) $(WINCFLAGS) -c $< -o $@winclean:	rm -f *.obj	rm -f test.exe

⌨️ 快捷键说明

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