#
# Makefile for NORDRAD UNIX API interface
#
#

LIB = ../lib/libnordrad.a

DEFINES = -D_BSD -DNOSERVER -DNOTIMERS

CFLAGS= ${DEBUGFLAG} ${C_OPT} -D${MACH_OS} ${DEFINES}



NRD_SRCS = comp.c fil.c netcom.c nradapi.c nradutil.c

NRD_OBJS = ${NRD_SRCS:.c=.o}


all: ${LIB}

MKDEPEND_CSRCS = ${NRD_SRCS}
depend:; ${MKDEPEND}

${LIB}: ${NRD_OBJS}
		rm -f ${LIB}
		ar -rscv ${LIB} ${NRD_OBJS}
		rootchmod 664 ${LIB}

install: all

cleanexe:;
clean:		cleanexe
		rm -f *.o
# DO NOT DELETE

comp.o: netdef.h api.h apitypes.h nraderr.h net.h fil.h rr_fil.h comp.h
comp.o: nradutil.h
fil.o: fil.h apitypes.h rr_fil.h
netcom.o: netdef.h api.h apitypes.h nraderr.h net.h utl.h nradutil.h
nradapi.o: netdef.h api.h apitypes.h nraderr.h net.h utl.h fil.h rr_fil.h
nradapi.o: comp.h nradutil.h
nradutil.o: nradutil.h apitypes.h netdef.h utl.h
