#
# Copyright (c) 1998, Guylhem AZNAR <guylhem@oeil.qc.ca>
#

@MAKEFILEDEFINES@

all:            $(PROG)

install:	install.bin install.man

install.bin:	$(PROG)
		$(STRIP) $(PROG)
		$(INSTALL_PROGRAM) $(PROG) $(AFTER_BIN_DIR)

install.man:
		$(INSTALL_DATA) $(PROG).man $(AFTER_MAN_DIR)/$(PROG).1x

uninstall:
		$(RMF) $(AFTER_BIN_DIR)/$(PROG)
		$(RMF) $(AFTER_MAN_DIR)/$(PROG).1x

clean:
		$(RMF) $(PROG) *.o *~ *% *.bak \#* core

distclean:
		$(RMF) $(PROG) config.cache config.log config.status Makefile.bak Makefile config.h configure.h *.o *~ *% *.bak \#* core autoconf/Makefile.common autoconf/Makefile.common.lib autoconf/Makefile.defines

indent:
		SRCS=`echo "$(OBJS) " | sed "s/.o /.c /g"`; \
		for i in $$SRCS; do \
		  if (indent < $$i > /tmp/$$i); then \
		    mv /tmp/$$i $$i; \
		  fi; \
		done

$(PROG):        $(OBJS)
		$(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@)

.c.o:
		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c

#
# End of Make.common
#


syntax highlighted by Code2HTML, v. 0.9.1