# Generated automatically from Makefile.in by configure.

top_srcdir = ../..
top_builddir = ../..


# ########################################################
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
CC = gcc

prefix = /usr
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
sbindir = /sbin
libsodir = ${exec_prefix}/lib
#libsodir = /lib
libadir = ${exec_prefix}/lib
mandir = /usr/share/man
srcdir = .
includedir = ${prefix}/include

NDS_SUPPORT = 1
SIGNATURES = 1

PACKAGE = ncpfs
VERSION = 2.2.0.17

CC_WARNINGS = no

ifeq ($(CC_WARNINGS),yes)
#CWARN = -Wall -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Waggregate-return -Wnested-externs -Winline -Wbad-function-cast -W #-Werror #-Wwrite-strings -Wtraditional -Wshadow
CWARN = -Wall -Wstrict-prototypes -Wcast-qual -Waggregate-return -Wnested-externs -Winline -Wbad-function-cast -W #-Wpointer-arith #-Werror #-Wwrite-strings -Wtraditional -Wshadow
else
CWARN = 
endif

# ########################################################

INCLUDES=-I$(top_srcdir)/include -I$(top_srcdir)/intl

CFLAGS_OPTIONS += -g -O2
CFLAGS_OPTIONS += $(CWARN)

CCFLAGS = $(CFLAGS_DEFINES) $(CFLAGS_OPTIONS) $(INCLUDES)

# If your system is ELF, either also do a 'make install', or append the util/
# directory where the dynamic library resides to the environment
# variable LD_LIBRARY_PATH
HAVE_ELF=$(shell file `whereis gcc|cut -d ' ' -f 2`| \
		grep ELF >/dev/null && echo -n yes )
#HAVE_ELF=yes

#$(shell echo $(VERSION) | cut -d '.' -f 1)
#VERSION_SOLIB = $(shell echo $(VERSION) | cut -d '.' -f 1-3)
VERSION_SOLIB = 2.3.0
VERSION_SONAME = 2.3


UTILS = ipxrcv ipxsend rip sap
CFLAGS := $(CCFLAGS)

all: $(UTILS)

dep:
	$(CPP) -M $(INCLUDES) *.c > .depend

clean:
	rm -f $(UTILS) *.o rip sap ipxrcv ipxsend

mrproper: clean
	rm -f .depend

distclean: mrproper
