首页 > 其他分享 >makefile编写

makefile编写

时间:2022-11-13 19:14:54浏览次数:39  
标签:socket cxx makefile nginx conf 编写 ngx

/****************************************************/
1. 目录结构
    在文件夹下执行“tree”命令,没有该命令则安装:sudo apt install tree
     .
     ├── app    //用来存放主应用程序的.c文件及核心文件
     │   ├── dep  //存放依赖文件,每个.c文件都对应一个.dep文件,由makefile创建。修改了.h文件将会重新编译关联的.c文件
     │   │   ├── nginx.d
     │   │   ├── ngx_c_conf.d
     │   │   ├── ngx_c_crc32.d
     │   │   ├── ngx_c_memory.d
     │   │   ├── ngx_c_slogic.d
     │   │   ├── ngx_c_socket_accept.d
     │   │   ├── ngx_c_socket_conn.d
     │   │   ├── ngx_c_socket.d
     │   │   ├── ngx_c_socket_inet.d
     │   │   ├── ngx_c_socket_request.d
     │   │   ├── ngx_c_socket_time.d
     │   │   ├── ngx_c_threadpool.d
     │   │   ├── ngx_daemon.d
     │   │   ├── ngx_event.d
     │   │   ├── ngx_log.d
     │   │   ├── ngx_printf.d
     │   │   ├── ngx_process_cycle.d
     │   │   ├── ngx_setproctitle.d
     │   │   ├── ngx_signal.d
     │   │   └── ngx_string.d
     │   ├── link_obj   //临时文件,该目录由makefile创建
     │   │   ├── nginx.o
     │   │   ├── ngx_c_conf.o
     │   │   ├── ngx_c_crc32.o
     │   │   ├── ngx_c_memory.o
     │   │   ├── ngx_c_slogic.o
     │   │   ├── ngx_c_socket_accept.o
     │   │   ├── ngx_c_socket_conn.o
     │   │   ├── ngx_c_socket_inet.o
     │   │   ├── ngx_c_socket.o
     │   │   ├── ngx_c_socket_request.o
     │   │   ├── ngx_c_socket_time.o
     │   │   ├── ngx_c_threadpool.o
     │   │   ├── ngx_daemon.o
     │   │   ├── ngx_event.o
     │   │   ├── ngx_log.o
     │   │   ├── ngx_printf.o
     │   │   ├── ngx_process_cycle.o
     │   │   ├── ngx_setproctitle.o
     │   │   ├── ngx_signal.o
     │   │   └── ngx_string.o
     │   ├── makefile
     │   ├── nginx.cxx    //主文件,mian函数在此    
     │   ├── ngx_c_conf.cxx   
     │   ├── ngx_log.cxx
     │   ├── ngx_printf.cxx
     │   ├── ngx_setproctitle.cxx
     │   └── ngx_string.cxx
     ├── common.mk   //
     ├── config.mk
     ├── error.log
     ├── _include    //头文件
     │   ├── ngx_c_conf.h
     │   ├── ngx_c_crc32.h
     │   ├── ngx_c_lockmutex.h
     │   ├── ngx_c_memory.h
     │   ├── ngx_comm.h
     │   ├── ngx_c_slogic.h
     │   ├── ngx_c_socket.h
     │   ├── ngx_c_threadpool.h
     │   ├── ngx_func.h
     │   ├── ngx_global.h
     │   ├── ngx_logiccomm.h
     │   └── ngx_macro.h
     ├── logic
     │   ├── makefile
     │   └── ngx_c_slogic.cxx
     ├── logs
     ├── makefile
     ├── misc    //存放各种不好分类的
     │   ├── makefile
     │   ├── ngx_c_crc32.cxx   
     │   ├── ngx_c_memory.cxx   
     │   └── ngx_c_threadpool.cxx 
     ├── net        //网络处理相关
     │   ├── makefile
     │   ├── ngx_c_socket_accept.cxx 
     │   ├── ngx_c_socket_conn.cxx  
     │   ├── ngx_c_socket.cxx     
     │   ├── ngx_c_socket_inet.cxx   
     │   ├── ngx_c_socket_request.cxx
     │   └── ngx_c_socket_time.cxx  
     ├── nginx      //生成的可执行程序
     ├── nginx.conf //配置文件
     ├── proc       //存放和进程处理相关的
     │   ├── makefile
     │   ├── ngx_daemon.cxx
     │   ├── ngx_event.cxx
     │   └── ngx_process_cycle.cxx
     └── signal     //存放和信号处理相关的
         ├── makefile
         └── ngx_signal.cxx
     
/****************************************************/

 

标签:socket,cxx,makefile,nginx,conf,编写,ngx
From: https://www.cnblogs.com/dkhlaojogo/p/16886637.html

相关文章