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

📄 makefile

📁 Sample driver code for Dallas DS26528 T1/E1 framer chip.
💻
字号:

##############################################################################
#
# This Makefile is for stand-alone drivers only.  This Makefile is ignored if
# you're building the NCI Trunk Management Software package.
#
# These drivers were written by:
#
# NComm, Inc.
# 254 North Broadway
# Suite 106
# Salem, NH 03079
# USA
#
# techsupport@ncomm.com
#
##############################################################################



FILE		= ds26528



# set BUILD_OS to one of VXWORKS or PSOS

BUILD_OS	= VXWORKS


NCI_CFLAGS	= -g -D$(BUILD_OS) -DDS26528T1 -DDS26528E1


all:		target.h $(FILE)T1.o $(FILE)E1.o
	rm target.h


$(FILE)t1.o:	$(FILE)T1.c $(FILE).h \
			target.h apiTE1Dv.h nciTMS.h nciTE1.h


$(FILE)e1.o:	$(FILE)E1.c $(FILE).h \
			target.h apiTE1Dv.h nciTMS.h nciTE1.h


# make a dummy target.h
target.h:
	echo #include "vxWorks.h" > target.h
	echo #include "stdArg.h" >> target.h
	echo #include "string.h" >> target.h
	echo #define INTERRUPT_KEYWORD >> target.h
	echo #define INTS_OFF()		0 >> target.h
	echo #define INTS_ON(x) >> target.h



##############################################################################
#
# These have to be last.
#

ifeq ($(BUILD_OS),VXWORKS)

WIND_HOST_TYPE	= x86-win32
CPU		= PPC860
TOOL		= gnu
TGT_DIR		= $(WIND_BASE)/target

ADDED_CFLAGS	+= $(NCI_CFLAGS)

include $(TGT_DIR)/h/make/defs.bsp
include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)
include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)

# This makes the build environment work under Win98
#
GCC_EXEC_PREFIX=c:\tornado860\host\x86-win32\lib\gcc-lib\\

else

.c.o:
	$(CC) $(COPTS) $(NCI_CFLAGS) $<
	@echo


PSS_DRVOBJS =
PSS_APPOBJS =
PSS_APPINCS =
PSS_COMPLIB = -lc
PSS_CONFIG  = $(PSS_ROOT)/configs/std

include $(PSS_BSP)/bsp.mk
include $(PSS_CONFIG)/config.mk

$(DRV_OBJS) : c.opt

endif

⌨️ 快捷键说明

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