zoukankan      html  css  js  c++  java
  • 一个完整的Makefile文件举例

    # 设置 C 语言的编译器                                                                             
    CC = gcc                                                                                          
                                                                                                      
    # -g 增加调试信息                                                                                 
    # -Wall 打开大部分警告信息                                                                        
    CFLAGS = -g -Wall                                                                                 
                                                                                                      
    # 整理一下 main 依赖哪些目标文件                                                                  
    MAINOBJS = main.o array.o 
     
    .PHONY: clean                                                                                     
                                                                                                      
    main: $(MAINOBJS)                                                                                 
            $(CC) $(CFLAGS) -o main $(MAINOBJS)                                                       
                                                                                                      
    array.o: array.c array.h                                                                          
            $(CC) $(CFLAGS) -c -o array.o array.c                                                     
                                                                                                      
    main.o: main.c array.h                                                                            
            $(CC) $(CFLAGS) -c -o main.o main.c                                                       
                                                                                                      
    clean:                                                                                            
            rm -f $(MAINOBJS) main  
  • 相关阅读:
    Vue Cli3.0 使用jquery
    使用js加载器动态加载外部js、css文件
    通过js获取本机的IP地址
    $.ajax 中的contentType类型
    vue中 :style 与 :class 三元运算符使用
    bootstrap table checkbox获得选中得数据
    vscode自动生成文件头部注释和函数注释
    axios二次封装的几种方法
    vue组件库element-ui 的Table内容显示不更新
    Linux中iptables设置详细
  • 原文地址:https://www.cnblogs.com/candyYang/p/10592854.html
Copyright © 2011-2022 走看看