makefile.compile

来自「开源的键盘模拟程序」· COMPILE 代码 · 共 58 行

COMPILE
58
字号
#################################################################################    Copyright (C) 2003 Reznic Valery <valery_reznic@users.sourceforge.net>##    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.################################################################################ifneq "$(VERSION)" ""   DEFINES = -DVERSION='"$(VERSION)"'else   $(error "Variable 'VERSION' should be defined")endifINCLUDE_PATH = -I$(TOP_DIR)/libLIBRARY_PATH = -L$(TOP_DIR)/libD_FILES   = $(patsubst %,.depend/%.d,$(CFILES))C_OBJECTS = $(CFILES:%.c=%.o)$(TARGET): $(C_OBJECTS)$(C_OBJECTS): %.o: %.c	gcc -c $(CPPFLAGS) $(CFLAGS) $< -o $@clean-compile-local:	$(RM) $(C_OBJECTS) $(TARGET)	$(RMDIR) .dependclean-local: clean-compile-localifeq "$(NEED_INCLUDE_DEPENDENCIES)" "YES"ifneq "$(D_FILES)" ""$(D_FILES): .depend/%.d: %	$(MKDIR) .depend	( printf "$@ " && gcc -P -M $(CPPFLAGS) $(CFLAGS) $< ) > $@ || { $(RM) $@; exit 1; }sinclude $(D_FILES)endifendififneq "$(D_FILES)" "".PHONY: all-localall-local: $(GENERATED_COMPILE_FILES)	@$(MAKE) NEED_INCLUDE_DEPENDENCIES=YES $(TARGET)elseall-local: $(TARGET)endif

⌨️ 快捷键说明

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