APUE course source code
guowenxue
yesterday 7b55c92f8d1401a93c8fd8e342da271dce742000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#********************************************************************************
#      Copyright:  (C) 2023 LingYun IoT System Studio
#                  All rights reserved.
#
#       Filename:  Makefile
#    Description:  This file used to compile all the C file to respective binary,
#                  and it will auto detect cross compile or local compile.
#
#        Version:  1.0.0(11/08/23)
#         Author:  Guo Wenxue <guowenxue@gmail.com>
#      ChangeLog:  1, Release initial version on "11/08/23 16:18:43"
#
#*******************************************************************************
 
APP_NAME=dnsclient
 
PRJ_PATH=$(shell pwd)
 
CFLAGS=-Wall -Werror
 
SRC_FILES = $(wildcard *.c)
 
all: ${SRC_FILES}
    $(CC) $(CFLAGS) -o ${APP_NAME} $^ $(LDFLAGS)
 
clean:
    rm -f ${APP_NAME}