makefile

来自「Linux下的ftp服务器」· 代码 · 共 13 行

TXT
13
字号
CC=gcc -g
zjwftp:myftp_serv.o myftp_cmd_string.o myftp_state_machine.o mystr.o
	$(CC) $^ -o $@ -lcrypt
myftp_serv.o:myftp_serv.c myftp_cmd_string.h myftp_state_machine.h mystr.h
	$(CC) -c $< -o $@
myftp_cmd_string.o:myftp_cmd_string.c myftp_cmd_string.h
	$(CC) -c $< -o $@
myftp_state_machine.o:myftp_state_machine.c myftp_state_machine.h myftp_session.h myftp_cmd_string.h public.h
	$(CC) -c $< -o $@
mystr.o:mystr.c mystr.h public.h
	$(CC) -c $< -o $@
clean:
	rm -rf *.o

⌨️ 快捷键说明

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