📄 makefile
字号:
#-------------------------------------------------------------------------# Makefile--# Makefile for regex#-------------------------------------------------------------------------TARGET = matchCC = gccCFLAGS = -Wall -O3 -fPIC -D DEBUG -g#CFLAGS = -Wall -O3 -fPICSOURCE = test.c regexp.c regfree.c wchar.c encnames.c conv.c mbutils.c regerror.c regcomp.c wstrncmp.c regexec.cOBJS = regexp.o regfree.o wchar.o encnames.o mbutils.o regerror.o regcomp.o wstrncmp.o regexec.oall:libregex.so $(TARGET) $(TARGET): test.c libregex.so $(CC) -o $@ $(CFLAGS) $(OBJS) test.clibregex.so:$(OBJS) $(CC) --shared -o $@ $(OBJS)$(OBJS): %.o: %.c $(CC) -c $(CFLAGS) $< -o $@.PHONY:cleanclean: rm -f $(OBJS) match libregex.so
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -