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

📄 makefile

📁 这是模拟器源代码
💻
字号:
## Makefile## thinlib library makefile## Copyright (C) 2000 Matthew Conte (matt@conte.com)## $Id: Makefile,v 1.11 2001/03/12 06:06:55 matt Exp $################################# ConfigurationCFLAGS      =  -W -Wall -WerrorDBGCFLAGS   =  -ggdb -DTHINLIB_DEBUGOPTCFLAGS   =  -O3 -fomit-frame-pointer -ffast-math# AssemblerASM = nasmASMFLAGS    =  -f coffDBGASMFLAGS =  -g################################WANT_DEBUG = TRUE# WANT_AALIB = TRUE################################ifeq "$(WANT_DEBUG)" "TRUE"	CFLAGS += $(DBGCFLAGS)	ASMFLAGS += $(DBGASMFLAGS)else	CFLAGS += $(OPTCFLAGS)endififneq "$(WANT_AALIB)" "TRUE"	CFLAGS += -DNO_AALIBendif################################CFILES = tl_main tl_log tl_timer tl_key tl_mouse tl_joy \	tl_dpp tl_bmp tl_aa tl_vesa tl_vga tl_video tl_sb tl_soundCSRCS = $(addsuffix .c, $(CFILES))OBJS = $(addsuffix .o, $(CFILES))################################.PHONY = all dep cleanall: libthin.a thintest.execlean:	rm -f libthin.a thintest.exe $(OBJS) _depthintest.exe: thintest.cpp libthin.a	$(CXX) -o $@ thintest.cpp -L. -lthinlibthin.a: $(OBJS)	rm -f $@	ar scru $@ $(OBJS)dep: rmdep _dep################################rmdep:	@rm -f _dep	@echo "# dep file" > _depifneq "$(CSRCS)" ""	@$(foreach .a, $(CSRCS), $(CC) $(CFLAGS) -MM $(.a) >> _dep;)endififneq "$(ASMSRCS)" ""	@$(foreach .a, $(ASMSRCS), $(ASM) $(ASMFLAGS) -M $(.a) >> _dep;)endif_dep:# this is done so that we don't get all the no such file warnings	@echo "# dep file" > _depifneq "$(CSRCS)" ""	@$(foreach .a, $(CSRCS), $(CC) $(CFLAGS) -MM $(.a) >> _dep;)endififneq "$(ASMSRCS)" ""	@$(foreach .a, $(ASMSRCS), $(ASM) $(ASMFLAGS) -M $(.a) >> _dep;)endifinclude _dep################################%.o: %.cpp	$(CXX) $(CFLAGS) -o $@ -c $<%.o: %.c	$(CC) $(CFLAGS) -o $@ -c $<%.o: %.asm	$(ASM) $(ASMFLAGS) -o $@ $<################################# $Log: Makefile,v $# Revision 1.11  2001/03/12 06:06:55  matt# better keyboard driver, support for bit depths other than 8bpp## Revision 1.10  2001/02/01 06:28:26  matt# thinlib now works under NT/2000## Revision 1.9  2001/01/15 05:25:52  matt# i hate near pointers## Revision 1.8  2000/12/16 17:38:25  matt# tl_sound## Revision 1.7  2000/12/14 14:13:47  matt# test suite## Revision 1.6  2000/12/13 14:14:27  matt# DJGPP_USE_NEARPTR -> THINLIB_NEARPTR## Revision 1.5  2000/12/13 13:57:32  matt# self-sufficient makefile#

⌨️ 快捷键说明

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