📄 makefile
字号:
# Copyright (c) 2004-2005, Dennis Kuschel / Swen Moczarski
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. The name of the author may not be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
# This file is originally from the pico]OS realtime operating system
# (http://picoos.sourceforge.net).
#
# $Id: makefile,v 1.1 2005/02/07 22:52:27 dkuschel Exp $
# ---------------------------------------------------------------------------
# PRECONDITION SETUP
# ---------------------------------------------------------------------------
# Set relative path to the picoos root directory -> YOU NEED TO CHANGE THIS!
RELROOT = ../../../../../../picoos/
# Set relative path to network root directory -> YOU NEED TO CHANGE THIS!
NETWORKROOT = ../../../../
# Set path to the WinPcap developers pack directory -> YOU NEED TO CHANGE THIS!
ifeq '$(strip $(WPDPACK))' ''
WPDPACK = /winpcap/wpdpack
endif
# Set and check WinPcap include directory
WINPCAP_INC = $(WPDPACK)/include
ifeq '$(strip $(wildcard $(WINPCAP_INC)/*.h))' ''
$(error The path to the WinPcap developer package is wrong or not set)
endif
# Get pico]OS path from environment (if it is set)
ifneq '$(strip $(PICOOS))' ''
RELROOT := $(PICOOS)/
endif
# Check path: RELROOT
-include $(NETWORKROOT)findpico.mak
# Include common makefile
include $(RELROOT)make/common.mak
# ---------------------------------------------------------------------------
# LIBRARY SETTINGS
# ---------------------------------------------------------------------------
# Set target file name (library filename without extension)
TARGET = pktifw32
### Set up lists of source files ###
# Set list of C source files / assembler files
SRC_TXT = pktdrv.c pktif.c
# Set list of header files used by the C source files
SRC_HDR =
# You may add some already compiled object files here
SRC_OBJ =
# Set additional C-defines
CDEFINES +=
# Set additional include paths
DIR_USRINC += $(WINPCAP_INC)
# Set the output directory for the generated binaries. If you do not
# set this variable, the files will be stored in the pico]OS root
# root directory structure (pioos/out, picoos/lib, picoos/obj)
# Note: Please keep the ifeq/endif pair. This allows to set the
# output directory from outsite (may be by a project makefile).
ifeq '$(strip $(DIR_OUTPUT))' ''
DIR_OUTPUT = $(CURRENTDIR)/bin
endif
# ---------------------------------------------------------------------------
# INCLUDE LWIP HEADER FILES INTO THIS PROJECT
# ---------------------------------------------------------------------------
# Set name of lwIP TCP/IP module
TCPIPMODULE = tcpip
# include lwIP configuration makefile
TCPIPMODULE_PATH = $(NETWORKROOT)$(TCPIPMODULE)
include $(TCPIPMODULE_PATH)/lwip_cfg.mak
# ---------------------------------------------------------------------------
# BUILD THE LIBRARY
# ---------------------------------------------------------------------------
include $(MAKE_LIB)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -