⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 picoos源码。The RTOS and the TCP/IP stack will be built automatically.
💻
字号:
#  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.2 2006/04/14 13:44:54 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 = ../../network/

# Set path to the WinPcap developers pack directory  -> YOU NEED TO CHANGE THIS!
ifeq '$(strip $(WPDPACK))' ''
WPDPACK = /winpcap/wpdpack
endif

# Check and set WinPcap library directory
WINPCAP_LIB = $(WPDPACK)/lib/packet$(EXT_LIB)
export WPDPACK
ifeq '$(strip $(wildcard $(WPDPACK)/lib/*))' ''
$(error The path to the WinPcap developer package is wrong or not set)
endif

# Set default port
ifeq '$(strip $(PORT))' ''
PORT = x86w32
endif

# Set fixed build mode (DEBUG or RELEASE)         -> YOU MAY CHANGE THIS!
#BUILD = DEBUG  (->need to be specified at the command line)

# Get pico]OS path from environment (if it is set)
ifneq '$(strip $(PICOOS))' ''
RELROOT := $(PICOOS)/
endif

# Check paths: RELROOT and NETWORKROOT
-include ../findpico.mak
-include ../findnetw.mak

# Include common makefile
include $(RELROOT)make/common.mak

ifneq '$(strip $(PORT))' 'x86w32'
$(error Sorry, this program is configured to run with the MS Windows \
 ethernet driver only. You need to change main.c and this makefile)
endif



# ---------------------------------------------------------------------------
# PROJECT SETTINGS
# ---------------------------------------------------------------------------

# To include the pico]OS nano layer, set this define to 1
NANO = 0

# Set target filename (the name of the executable, without extension)
TARGET = winserver


### Set up lists of source files ###

# Set list of C source files / assembler files
SLDEMODIR = $(NETWORKROOT)e-soft/demo/
SRC_TXT = main.c slstats.c slindex.c \
          ../common/chargen.c ../common/startup.c ../common/wininit.c \
          $(SLDEMODIR)servlet2.c $(SLDEMODIR)servlet3.c \
          $(SLDEMODIR)servlet4.c $(SLDEMODIR)servlet5.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 =

# Add the libraries you are using in your program here
SRC_LIB = $(WINPCAP_LIB) $(GCC_LIBDIR)$(PRE_LIB)advapi32$(EXT_LIB)

# Set additional C-defines
CDEFINES +=

# Set additional include paths
DIR_USRINC +=

# Set the directory that contains the configuration header files.
# If this variable is not set, the default configuration files will be
# taken from the port/default directory.
# If you wish to use your own configuration files, you can place them
# in the current directory. Then, set  DIR_CONFIG = $(CURRENTDIR)
DIR_CONFIG =

# 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)
DIR_OUTPUT = $(CURRENTDIR)/bin

# Include pico]OS based modules. Set here the list of modules
# (libraries) you want to use in your project. Note that the module
# name is the name of the directory where the sources and the makefile
# is stored. The makefile must be named "makefile" or "makefile.pico"
# Example:  MODULES += $(RELROOT)../lcdinterface
MODULES += $(NETWORKROOT)e-soft

# Execute external makefiles to build other libraries. Add here
# the filenames (with path) of other makefiles you wish to execute.
EXEC_MAKEFILES +=



# ---------------------------------------------------------------------------
# INCLUDE LWIP 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

# add the WinPcap driver library
# (Attention: when using GCC, the module order is important!)
MODULES += $(TCPIPMODULE_PATH)/lwipport/netif/pktifw32

# add lwIP module to the lists (path+makefile and library name)
MODULES += $(TCPIPMODULE_PATH)



# ---------------------------------------------------------------------------
# BUILD THE EXECUTABLE
# ---------------------------------------------------------------------------

include $(MAKE_OUT)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -