加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 653 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tom Boutell 提交于 2016-02-28 12:01 . make clean removes cgicunittest
CFLAGS=-g -Wall
CC=gcc
AR=ar
RANLIB=ranlib
LIBS=-L./ -lcgic
all: libcgic.a cgictest.cgi capture
install: libcgic.a
cp libcgic.a /usr/local/lib
cp cgic.h /usr/local/include
@echo libcgic.a is in /usr/local/lib. cgic.h is in /usr/local/include.
libcgic.a: cgic.o cgic.h
rm -f libcgic.a
$(AR) rc libcgic.a cgic.o
$(RANLIB) libcgic.a
#mingw32 and cygwin users: replace .cgi with .exe
cgictest.cgi: cgictest.o libcgic.a
gcc cgictest.o -o cgictest.cgi ${LIBS}
capture: capture.o libcgic.a
gcc capture.o -o capture ${LIBS}
clean:
rm -f *.o *.a cgictest.cgi capture cgicunittest
test:
gcc -D UNIT_TEST=1 cgic.c -o cgicunittest
./cgicunittest
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化