makefile

来自「Linux程序设计(原书第2版)源码」· 代码 · 共 50 行

TXT
50
字号
all:	server clientCC=ccCFLAGS=-I/usr/include/db1 -pedantic -Wall# For debugging un-comment the next line# DFLAGS=-DDEBUG_TRACE=1 -g# Include for systems with dbm, but only as part of the BSD licensed version,# and not in the standard locations. This is the default...DBM_INC_PATH=/usr/include/db1DBM_LIB_PATH=/usr/libDBM_LIB_FILE=db# For systems with dbm in the standard places, comment out the previous# definitions, and uncomment these# #DBM_INC_PATH=/usr/include#DBM_LIB_PATH=/usr/lib#DBM_LIB_FILE=ndbm# For systems where the gdbm libraries have been fetched and installed# separately in the default locations under /usr/local# comment out the previous definitions, and uncomment these#DBM_INC_PATH=/usr/local/include#DBM_LIB_PATH=/usr/local/lib#DBM_LIB_FILE=gdbm.c.o:	$(CC) $(CFLAGS) -I$(DBM_INC_PATH) $(DFLAGS) -c $<app_ui.o: app_ui.c cd_data.hcd_dbm.o: cd_dbm.c cd_data.hclient_f.o: clientif.c cd_data.h cliserv.hipc_imp.o: ipc_imp.c cd_data.h cliserv.hserver.o: server.c cd_data.h cliserv.hclient: app_ui.o clientif.o ipc_imp.o	$(CC) -o client  $(DFLAGS) app_ui.o clientif.o ipc_imp.oserver:	server.o cd_dbm.o ipc_imp.o	$(CC) -o server -L$(DBM_LIB_PATH) $(DFLAGS) server.o cd_dbm.o ipc_imp.o -l$(DBM_LIB_FILE)clean:	rm -f server client_app *.o *~

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?