# COPYRIGHT NOTICE
# Copyright (c) Alteon Networks, Inc. 1996, 1997 
# All rights reserved
# 
# 
# HISTORY
# $Log: Makefile $
# Revision snap_ted/2 1999/03/26 19:37:11 ted
# 	Remove unneeded pieces for NIC's genfw
# 
# Revision sb_tibor/2 1999/03/24 04:12:30 tibor
# 	include path for x86  different than normal
# 
# Revision r51_taylor/2 1999/03/04 20:17:43 taylor
# 	Fixed nightly build by add NM=/usr/local/bin/nm to Makefiles
# 
# Revision ge_taylor/2 1999/03/02 01:41:51 taylor
# 	Added ANSI_ACC=/usr/local/bin/gcc
# 
# Revision 1.1.2.3  1998/12/22  03:14:28  tibor
# 	added include paths for compiling under linux
# 	[1998/12/22  02:20:42  tibor]
#
# Revision 1.1.2.2  1998/06/19  07:55:46  tibor
# 	new pasing algs
# 	[1998/06/19  07:45:39  tibor]
# 
# Revision 1.1.2.1  1998/06/02  04:57:48  tibor
# 	initial version
# 	[1998/06/02  02:34:21  tibor]
# 
# $EndLog$

#
# make target specific changes here
#

.include <sys.mk>

LIBRARIES	= libutils.a
EXPDIR 		= /usr/lib/utils/
EXPLIB_TARGETS 	= export_${LIBRARIES}

.if ${WORLD_TARGET} == "nic"
OFILES		= CElf.o strcopy.o getopt.o dirname.o basename.o nextToken.o
CFILES		= CElf.c strcopy.c getopt.c dirname.c basename.c nextToken.c
.else
OFILES		= CElf.o strcopy.o com_crc.o getopt.o dirname.o basename.o \
		nextToken.o CMedia.o parseTools.o parseDefFile.o
CFILES		= CElf.c strcopy.c com_crc.c getopt.c dirname.c basename.c \
		nextToken.c CMedia.c parseTools.c parseDefFile.c
.endif

ANSI_CC		= /usr/local/bin/gcc
NM		= /usr/local/bin/nm

#
# override the defaults for clean and clobber
#
CLEANFILES	= *.list *.ss ${OFILES}

.if ($(context) == "i386_solaris")
LOCALINC	= /alteon-tools/include
.else
LOCALINC	= /usr/local/include
.endif

.if defined(.CURDIR)
INCFLAGS	= \
		-I/usr/include \
		-I${.CURDIR}/../common \
		-I${.CURDIR}/../../common \
		-I${.CURDIR}/../../libcommon \
		-I${LOCALINC}
.else
INCFLAGS	= \
		-I/usr/include \
		-I${MAKETOP}../src/utils/common \
		-I${MAKETOP}../src/lib/common \
		-I${MAKETOP}../src/common \
		-I${MAKETOP}../src/libcommon \
		-I${LOCALINC}
.endif

LIBFLAGS	= 
LIBS		= 

#
# modify lines below here at your own risk
#

OPT_LEVEL=-O2 -g

CDEFS=-DBIG_ENDIAN

#
# end of defines section, rules follow
#

DEPENDENCIES = yes

.include <${RULES_MK}>
