📄 makefile.gcc
字号:
#
#
# GCC Makefile for splash and tests
#
#
CC=gcc
CCFLAGS= -g -fno-implicit-templates
.c.o:
$(CC) -c $(CCFLAGS) $*.c
.cc.o:
$(CC) $(CCFLAGS) -c $*.cc
spltest: tsplash.o regex.o
$(CC) $(CCFLAGS) -c -DTEST spltest.cc
$(CC) $(CCFLAGS) -o spltest spltest.o tsplash.o regex.o -lgpp
slicetst: slicetst.cc tsplash.o regex.o
$(CC) -c $(CCFLAGS) -DTEST slicetst.cc
$(CC) $(CCFLAGS) -o slicetst slicetst.o tsplash.o regex.o -lgpp
tsplash.o: splash.cc regexp.h splash.h
$(CC) -c $(CCFLAGS) -DTEST splash.cc
move splash.o tsplash.o
splash.o: regexp.h splash.h
regex.o: regex.c
$(CC) $(CCFLAGS) -c regex.c
test: spltest slicetst
spltest > x1
diff x1 splash.v
slicetst > x2
diff x2 slicetst.v
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -