?? makefile
字號:
# Copyright 2003, Marvell International Ltd.
# This code contains confidential information of Marvell Semiconductor, Inc.
# No rights are granted herein under any patent, mask work right or copyright
# of Marvell or any third party.
# Marvell reserves the right at its sole discretion to request that this code
# be immediately returned to Marvell. This code is provided "as is".
# Marvell makes no warranties, express, implied or otherwise, regarding its
# accuracy, completeness or performance.
#
# Makefile for eCos DHCP module
#
# History:
# 8/17/03 cvu created
#
# The following variable MUST be defined in the environment
# ROOT_DIR :: fully qualified name of root of entire source tree
# HDR_MAK :: fully qualified name of the common header makefile
# FTR_MAK :: fully qualified name of the common footer makefile
#
include $(HDR_MAK)
# Names
DST_NAME = libdhcp.a
all: DIR_CHECK $(DST_NAME)
# MAKE_LIB_DIR and MAKE_OBJ_DIR are defined in $(FTR_MAK)
DIR_CHECK: MAKE_LIB_DIR MAKE_OBJ_DIR
###### OVERRIDE COMMON MAKEFILE VARIABLES HERE
# Override the variables defined in $(HDR_MAK) here
# The following directory variables are defined in $(HDR_MAK)
# SRC_DIR =
OBJ_DIR = $(PROD_BUILD_DIR)/obj
LIB_DIR = $(PROD_BUILD_DIR)/lib
###### FLAGS
# PROD_BUILD_DIR is an environment variable
EXTRACFLAGS += -I../incl -I$(PROD_BUILD_DIR)
###### LOCAL BUILD RULES
#
$(OBJ_DIR)/%.o: %.c
$(CC) -c -o $(OBJ_DIR)/$*.o $(CFLAGS) $(EXTRACFLAGS) $<
###### MANDATORY LOCAL VARIABLES
# The local makefile must define the following:
# SRCS :: list of source files
# OBJS :: list of object files
# DST :: name of build product, like a library
# You need only add new file to the list in SRCS
SRCS=dhcp_prot.c dhcp_support.c
# DO not edit OBJS and DST
OBJS=${SRCS:%.c=$(OBJ_DIR)/%.o}
DST=$(LIB_DIR)/$(DST_NAME)
$(DST_NAME): ${OBJS}
$(AR) $(ARFLAGS) $(DST) $?
include $(FTR_MAK)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -