# Generated automatically from Makefile.in by configure.
include $(BLDDIR)/Make.conf

bin: binary
binary: $(BINARY)

#DEFS += -DDEBUG

$(BINARY): $(BINHDRS) $(BINOBJS)  ../include/version.h
	- $(CC) $(LDFLAGS) $(DEFS) $(CFLAGS) -o $(BINARY)  $(BINOBJS) -L../lib ../lib/$(LIBRARY)
	- $(STRIP) $(BINARY)
	# - $(BINCOMP) $(BINARY)

preccx.h: ../include/version.h
preamble.h: ../include/version.h

../include/version.h: Makefile 
	- $(RM) $@
	- $(ECHO) "# define __PRECC__ $(RELEASE),$(VERSION)$(PATCHLEVEL)" > $@
	- $(ECHO) "# ifndef __DATE__" >> $@
	- $(ECHO) "#   define __DATE__ \"`$(DATE)`\"" >> $@
	- $(ECHO) "# endif" >> $@

install-bin: install

install: $(BINARY)
	- $(INSTALL_DIR) $(BINDIR)
	- $(INSTALL_PROGRAM) $(BINARY) $(BINDIR)

clean: dummy
	- $(RM) $(BINARY) $(BINARY)~ $(BINOBJS) core *~ *.bak *.sw?

realclean: clean
	- $(RM) ../include/version.h

ci: dummy
	ci -f -l -m"$(MESSAGE)" *.[chy]

include $(TOPDIR)/src/rules.mk
