makefile

来自「自己移植的linux下的流媒体播放器原代码,支持mms协议,支持ftp和http」· 代码 · 共 70 行

TXT
70
字号
include ../config.makLIBNAME = libosdep.aSRCS= shmem.c strsep.c strl.c vsscanf.c scandir.c gettimeofday.c fseeko.c \      swab.c      # timer.cifeq ($(TARGET_ARCH_X86),yes)ifeq ($(TARGET_OS),Linux)SRCS += lrmi.c vbelib.cendifendifgetch = getch2.ctimer = timer-lx.cifeq ($(MACOSX_FINDER_SUPPORT),yes)SRCS += macosx_finder_args.cendififeq ($(TARGET_OS),Darwin)timer = timer-darwin.cendififeq ($(TARGET_OS),CYGWIN)timer = timer-win2.cendififeq ($(TARGET_OS),MINGW32)timer = timer-win2.cgetch = getch2-win.cSRCS += glob-win.cendifSRCS += $(timer)SRCS += $(getch)OBJS=$(SRCS:.c=.o)CFLAGS  = $(OPTFLAGS) -I. -I.. $(EXTRA_INC)# -I/usr/X11R6/include/.SUFFIXES: .c .o# .PHONY: all clean.c.o:	$(CC) -c $(CFLAGS) -o $@ $<$(LIBNAME):     $(OBJS)	$(AR) r $(LIBNAME) $(OBJS)	$(RANLIB) $(LIBNAME)all:    $(LIBNAME)clean:	rm -f *.o *.a *~distclean:	rm -f Makefile.bak *.o *.a *~ .dependdep:    dependdepend:	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend## include dependency files if they exist#ifneq ($(wildcard .depend),)include .dependendif

⌨️ 快捷键说明

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