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

📄 makefile

📁 Libnet is a cross-platform library aimed at game developers. It has an abstract high level API, whic
💻
字号:
BASE = ..include $(BASE)/port.makCFLAGS = -O2 $(WARNING_FLAGS) -g -I$(INCDIR) -Iinclude -DTARGET_$(TARGET)CXXFLAGS = $(CFLAGS)CORE = core channels config conns lists connhelp timer fixaddr classes drivers threads wait addressDRIVERS = nonet wsockdos internet template ipx ipxsocks serial serdos serlinux local inetaddr# Not a pleasant solutionDRIVERS += $(PLATFORM_DRIVERS)CORE_OBJS = $(addprefix core/, $(addsuffix .o, $(CORE)))DRIVER_OBJS = $(addprefix drivers/, $(addsuffix .o, $(DRIVERS))).PHONY: all lib install clean cleaner veryclean rebuild reinstall.PRECIOUS: %/%.oall: liblib: $(LIBSRC) $(INCSRC)install: $(LIBDEST) $(INCDEST)$(LIBDEST): $(LIBSRC)	@echo "Copying $(LIBFILENAME) to library directory..."	$(CP_F) $< $@$(INCDEST): $(INCSRC)	@echo "Copying $(INCNAME) to include directory..."	$(CP_F) $< $@$(LIBSRC): $(CORE_OBJS) $(DRIVER_OBJS)	@echo "Updating library..."	$(AR) $(ARFLAGS) $@ $^# General dependencies$(CORE_OBJS): $(INCSRC) include/internal.h include/drivers.h$(DRIVER_OBJS): $(INCSRC) include/internal.h include/config.h include/platdefs.h# Specific dependenciescore/channels.o: include/channels.h include/drivers.hcore/config.o:   include/config.h include/drivers.hcore/connhelp.o: include/config.h include/connhelp.h include/platdefs.h include/timer.hcore/conns.o:    include/conns.h include/drivers.h include/timer.hcore/core.o:     include/channels.h include/connhelp.h include/conns.h include/drivers.hcore/threads.o:  include/threads.hdrivers/ipx.o:      include/types.hdrivers/local.o:    include/types.h include/threads.hdrivers/serbeos.o:  include/serial.hdrivers/serdos.o:   include/serial.h include/serdos.hdrivers/serial.o:   include/serial.hdrivers/serlinux.o: include/serial.hdrivers/internet.o: include/inetaddr.h include/inetdefs.hdrivers/inetaddr.o: include/inetaddr.h include/inetdefs.hdrivers/wsockdos.o: include/dns.h include/inetaddr.h include/wsockdos.hclean:	@echo "Cleaning..."	$(RM_F) $(CORE_OBJS) $(DRIVER_OBJS)cleaner: clean	@echo "Scrubbing..."	$(RM_F) $(LIBSRC)veryclean: cleaner	@echo "Eradicating..."	$(RM_F) $(LIBDEST)	$(RM_F) $(INCDEST)rebuild: veryclean allreinstall: veryclean install

⌨️ 快捷键说明

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