makefile
来自「操作系统试验!通过这个试验」· 代码 · 共 33 行
TXT
33 行
# This is a make file that builds the library for# kernel/lib/string##CC = gccAR = arCFLAGS = -nostdinc -fno-strict-aliasing -fno-builtin -g -Wall -WerrorLD = ldLDFLAGS = -staticINCLUDES = -I../incSTRING_OBJS = bcmp.o bcopy.o bzero.o memchr.o memcmp.o memset.o \ rindex.o strcasecmp.o strcat.o strchr.o strcmp.o \ strcpy.o strcspn.o strdup.o strlen.o strncat.o \ strncmp.o strncpy.o strpbrk.o strrchr.o strsep.o \ strspn.o strstr.o strtok.o strtok_r.o all: libstring.a%.o: Makefile %.c $(CC) -c -o $(*F).o $(CFLAGS) $(INCLUDES) $(*F).c%.o: Makefile %.S $(CC) -c -o $(*F).o $(CFLAGS) $(INCLUDES) $(*F).Slibstring.a: Makefile $(STRING_OBJS) $(AR) rc libstring.a $(STRING_OBJS) mv libstring.a ..clean: rm -f *.o *.d *.a
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?