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

📄 makefile.inc

📁 ADaM is a data mining and image processing toolkit
💻 INC
字号:
# Source configuration.include ../Makefile.conf# Per-executable configuration.LIBS +=SHELL := /bin/sh# Internal.depdirs := $(foreach d,$(DEPS),../$(d))includes := $(foreach d,$(depdirs),-I$(d))libs := $(foreach d,$(DEPS),../$(d)/lib$(d).a) $(LIBS)headers := $(wildcard *.h)csources := $(filter-out main.c, $(wildcard *.c))objs := $(patsubst %.c,%.o,$(csources))here := $(shell basename "$$(pwd)")exe := $(here)lib := lib$(here).a# Executable, library, and objects..PHONY : exe libexe: $(exe)$(exe): $(libs) $(lib) main.c	$(CC) -o $@ $(includes) main.c $(lib) $(libs) $(LDFLAGS)lib: $(lib)$(lib): $(libs) $(objs)	$(AR) rv "$(lib)" $(objs)# .c to .o, need to condition on Windows or UNIX.%.o : %.c $(headers)ifeq ($(t),win32)	$(CC) /nologo /c $(CFLAGS) $(includes) /Fo$@ $<else	$(CC) -c $(CFLAGS) $(includes) -o $@ $<endif# Clean..PHONY : clean cleanallclean:	$(RM) *.o *.obj gmon.out *~	$(RM) $(lib)	$(RM) $(exe)cleanall: clean	for d in $(depdirs); do make -C "$$d" clean; done# Supporting libraries..PHONY : depdirs $(depdirs)depdirs: $(depdirs)$(depdirs):	$(MAKE) -C $@$(libs): $(depdirs)

⌨️ 快捷键说明

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