📄 c_stpvr2_ip_makefile
字号:
## Add here the options you want to have for compilation, for each
## group of device driver.
## default template is -c2 -O0
## extra options are
## -G : enable debug information
## -Dxxx : specific define for a group of drivers
## type st20icc -Z for all options
C_CC_GLOBAL = -D$(CHIP) -D$(CHIP_VERSION) -D$(EVALBOARD) -D$(SMITYPE) -DSTBACK -DARCHITECTURE_ST20 -DDVD_TRANSPORT_STPTI -DNG_CPU_ST20C2 -DNG_COMP_ST20CC -DNG_RTOS -DNGOS_ISR_SUPPORTED -DRISCOS -DUSE_GPIO
C_CC_STIP = -CPPC -c2 -G -align-to 1 -O2 $(C_CC_GLOBAL)
CC = st20icc @path.lbb
ML = st20libr
LK = st20link os20ilc3.lib os20intc1.lib
CP = copy >NUL: 2>NUL:
DEL = del /F /Q /S >NUL: 2>NUL:
ECHO = echo
##################
## Dependencies ##
##################
all : iplib.dir/iplib.lib
purge :
@echo Cleaning...
-@$(DEL) *.tco
-@$(DEL) *.lib
-@$(DEL) *.dbg
-@$(DEL) *.lku
-@$(DEL) *.map
-@$(DEL) *.bak
-@$(DEL) *.hex
-@$(DEL) *.bin
iplib.dir/iplib.lib : \
iplib.dir/stethernet118.tco \
iplib.dir/cs8900a.tco \
iplib.dir/myAlloc.tco \
iplib.dir/misctest.tco \
iplib.dir/iptest.tco \
iplib.dir/rtsptest.tco \
iplib.dir/iptvclient.tco \
iplib.dir/ngsetup.tco \
iplib.dir/ngos20.tco \
iplib.dir/iplive.tco \
iplib.dir/ipdemo.tco
$(ML) -F $(APIRIP)iplib.lbb lib/ngos2.lib lib/ngip2.lib lib/ngrsv2.lib lib/ngrtsp2.lib lib/ngnet2.lib lib/ngbt2.lib \
-o iplib.dir/iplib.lib
################
## STETHERNET ##
################
#iplib.dir/stethernet.tco : $(APIRIP)drivers/stethernet/stethernet.c $(APIRIP)drivers/stethernet/stethernet.h $(APIRIP)include/ngeth.h $(APIRIP)include/ngip/ethernet.h
# $(CC) $(APIRIP)drivers/stethernet/stethernet.c -o $(APIRIP)iplib.dir/stethernet.tco $(C_CC_STIP)
iplib.dir/stethernet118.tco : $(APIRIP)drivers/stethernet/stethernet118.c $(APIRIP)drivers/stethernet/lan9118.c $(APIRIP)include/ngeth.h $(APIRIP)include/ngip/ethernet.h $(APIRIP)drivers/stethernet/lan9118.h
$(CC) $(APIRIP)drivers/stethernet/stethernet118.c -o $(APIRIP)iplib.dir/stethernet118.tco $(C_CC_STIP)
################
## CRYSTALDRV ##
################
iplib.dir/cs8900a.tco : $(APIRIP)drivers/crystaldrv/cs8900gn.c $(APIRIP)drivers/crystaldrv/cs8900a.h $(APIRIP)include/ngeth.h $(APIRIP)include/ngip/ethernet.h
$(CC) $(APIRIP)drivers/crystaldrv/cs8900gn.c -o $(APIRIP)iplib.dir/cs8900a.tco $(C_CC_STIP)
################
## MYALLOC ##
################
iplib.dir/myAlloc.tco : $(APIRIP)os/myAlloc.c $(APIRIP)os/myAlloc.h $(APIRIP)include/ngos/cpu/st20/macros.h ../apilib/STCONFIG/stddefs.h
$(CC) $(APIRIP)os/myAlloc.c -o $(APIRIP)iplib.dir/myAlloc.tco $(C_CC_STIP)
################
## MISCTEST ##
################
iplib.dir/misctest.tco : $(APIRIP)tests/misctest.C
$(CC) $(APIRIP)tests/misctest.C -o $(APIRIP)iplib.dir/misctest.tco $(C_CC_STIP)
################
## IPTEST ##
################
iplib.dir/iptest.tco : $(APIRIP)tests/iptest.c $(APIRIP)tests/iptest.h $(APIRIP)os/myAlloc.h $(APIRIP)include/ngsocket.h $(APIRIP)include/ngip.h $(APIRIP)include/ngudp.h $(APIRIP)include/ngeth.h $(APIRIP)include/ngip/ethernet.h
$(CC) $(APIRIP)tests/iptest.c -o $(APIRIP)iplib.dir/iptest.tco $(C_CC_STIP)
################
## RTSPTEST ##
################
iplib.dir/rtsptest.tco : $(APIRIP)tests/rtsptest.C
$(CC) $(APIRIP)tests/rtsptest.C -o $(APIRIP)iplib.dir/rtsptest.tco $(C_CC_STIP)
################
## IPTVCLIENT ##
################
iplib.dir/iptvclient.tco : $(APIRIP)iptv/iptvclient.c $(APIRIP)iptv/iptvclient.h $(APIRIP)os/myAlloc.h $(APIRIP)include/ngsocket.h $(APIRIP)include/ngip.h include/ngudp.h $(APIRIP)include/ngeth.h $(APIRIP)include/ngip/ethernet.h
$(CC) $(APIRIP)iptv/iptvclient.c -o $(APIRIP)iplib.dir/iptvclient.tco $(C_CC_STIP)
################
## NGSETUP ##
################
iplib.dir/ngsetup.tco : $(APIRIP)tests/ngsetup.c $(APIRIP)tests/ngsetup.h $(APIRIP)os/myAlloc.h $(APIRIP)include/ngsocket.h $(APIRIP)include/ngip.h $(APIRIP)include/ngudp.h $(APIRIP)include/ngeth.h $(APIRIP)include/ngip/ethernet.h
$(CC) tests/ngsetup.c -o iplib.dir/ngsetup.tco $(C_CC_STIP)
################
## NGOS20 ##
################
iplib.dir/ngos20.tco : $(APIRIP)os/ngos20.c
$(CC) $(APIRIP)os/ngos20.c -o $(APIRIP)iplib.dir/ngos20.tco $(C_CC_STIP)
################
## IPLIVE ##
################
iplib.dir/iplive.tco : $(APIRIP)tests/iplive.c $(APIRIP)tests/iplive.h $(APIRIP)os/myAlloc.h $(APIRIP)include/ngsocket.h $(APIRIP)include/ngip.h $(APIRIP)include/ngudp.h $(APIRIP)include/ngeth.h $(APIRIP)include/ngip/ethernet.h
$(CC) tests/iplive.c -o iplib.dir/iplive.tco $(C_CC_STIP)
################
## IPDEMO ##
################
iplib.dir/ipdemo.tco : $(APIRIP)tests/ipdemo.c $(APIRIP)tests/ipdemo.h $(APIRIP)os/myAlloc.h $(APIRIP)include/ngsocket.h $(APIRIP)include/ngip.h $(APIRIP)include/ngudp.h $(APIRIP)include/ngeth.h $(APIRIP)include/ngip/ethernet.h
$(CC) tests/ipdemo.c -o iplib.dir/ipdemo.tco $(C_CC_STIP)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -