📄 makefile
字号:
all: server clientCC=ccCFLAGS= -pedantic -Wall# For debugging un-comment the next line# DFLAGS=-DDEBUG_TRACE=1 -g# Where, and which version, of dbm are we using.# This assumes gdbm is pre-installed in a standard place, but we are# going to use the gdbm compatability routines, that make it emulate ndbm.# We do this because ndbm is the 'most standard' of the dbm versions.# Depending on your distribution, these may need changing.DBM_INC_PATH=/usr/include/gdbmDBM_LIB_PATH=/usr/libDBM_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 *.o *~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -