
#/*
#*  Broadcom Cryptonet Driver software is distributed as is, without any warranty
#*  of any kind, either express or implied as further specified in the GNU Public
#*  License. This software may be used and distributed according to the terms of
#*  the GNU Public License.
#*
#* Cryptonet is a registered trademark of Broadcom Corporation.
#*/
# -----------------------------------------------------------
#
#  Copyright 1999
#  BlueSteel Networks
#  Mountain View, CA 94041
#  650-625-0500
#
# -----------------------------------------------------------
#
# ubs5501 LINUX Makefile for diags
# 
SHELL = /bin/sh

CC = gcc

# -O on Linux makes gcc coredump when compiling sha1.c
CFLAGS = -c $(INCDIR)
LDFLAGS = 

CFLAGS += $(BCM_OEM_DEFINES)

BINNAME=b58diag
BINDIR=../bin
LIBDIR=../lib
#INCDIR=-I../chptlinux -I../SRL
INCDIR=-I../Linux -I../SRL

RM = /bin/rm
RMFLAGS = -f

.SUFFIXES:
.SUFFIXES: .c .o

# files for a (source) distribution

UBSECSRC = cndiag.c  

OBJSUBSEC = cndiag.o


all: $(BINNAME)

$(BINNAME): $(OBJSUBSEC) 
	$(CC)  -o $(BINNAME)  $(LDFLAGS) $(OBJSUBSEC)

clean:
	$(RM) $(RMFLAGS) $(BINNAME) $(OBJSUBSEC)

rebuild:
	make clean
	make 
.c.o:
	$(CC) $(CFLAGS)  -c $<

