makefile
来自「linux程序学习里面全是一些关于linux方面的源代码」· 代码 · 共 30 行
TXT
30 行
CFLAGS = -gobjects = main.o users.o utils.o send_receive.o coms.o encode.oipmsg: $(objects) gcc $(CFLAGS) -o ipmsg $(objects) -lpthreadmain.o: main.c coms.h users.h ipmsg.h send_receive.h gcc $(CFLAGS) -c $^ users.o: users.c users.h coms.h gcc $(CFLAGS) -c $^utils.o: utils.c coms.h gcc $(CFLAGS) -c $^send_receive.o: send_receive.c send_receive.h coms.h ipmsg.h users.h gcc $(CFLAGS) -c $^coms.o: coms.c ipmsg.h coms.h gcc $(CFLAGS) -c $^encode.o: encode.c gcc $(CFLAGS) -c $^.PHONY: cleanclean: rm -f ipmsg $(objects) *.gchcgch: rm -f *.gch
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?