makefile.gcc

来自「SPLASH is a c++ class library that imple」· GCC 代码 · 共 38 行

GCC
38
字号
#
#
# 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 + =
减小字号Ctrl + -
显示快捷键?