# Generated automatically from Makefile.in by configure.
#
# Makefile for lib/et
#

include ../../make.rules

srcdir = .
top_srcdir = ../..
top_builddir = ../..
my_dir = lib/ss

# Beginning of file MCONFIG

DEFS =  -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_ERRNO_H=1 -DHAVE_MNTENT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_NET_IF_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_VPRINTF=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DHAVE_GETRUSAGE=1 -DHAVE_STRDUP=1 -DHAVE_STRCASECMP=1 -DHAVE_INO_T=1 

# An include directive pointing to a directory holding enough linux-like
# include files to satisfy some programs here
LINUX_INCLUDE=-I$(top_srcdir)/include -I$(top_builddir)/include

CFLAGS += $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
	-I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE) 

#
# A fast substitution command for fixing up man pages, shell scripts, etc.
#
SUBSTITUTE= $(top_builddir)/substitute_sh

all::

all:: compile_et

OBJS= error_message.obj et_name.obj init_et.obj com_err.obj
SRCS = $(srcdir)/error_message.c $(srcdir)/et_name.c $(srcdir)/init_et.c \
	$(srcdir)/com_err.c

HFILES= com_err.h

LIBDIR= et

all:: et.lib

et.lib : $(OBJS)
	rm -f $@
	$(LIBP)$@ $^

compile_et: $(SUBSTITUTE) $(srcdir)/compile_et.sh.in
	$(SUBSTITUTE) $(srcdir)/compile_et.sh.in compile_et
	chmod +x compile_et

clean::
	rm -f compile_et libcom_err.a libcom_err_p.a
	rm -f $(OBJS) profiled/*
	rm -f *~ \#* *.bak *.otl *.aux *.toc *.PS *.dvi *.ps TAGS *.ln
	rm -f ../libcom_err.a ../libcom_err_p.a
	rm -f *.$(OBJ) *.sbr *.exe *.lib et/Debug/*
