【发布时间】:2012-04-13 01:21:59
【问题描述】:
我有一个程序 test.c,它需要包含一个头文件 common.h。我是编写 make 文件的新手,到目前为止,我只有 test.c 的正确 make 文件(它使用 openssl):
INC=/usr/local/ssl/include/
LIB=/usr/local/ssl/lib/
all:
gcc -I$(INC) -L$(LIB) -o test test.c -lcrypto -ldl
如何编辑上述文件以编译 common.h ?
谢谢。
【问题讨论】: