# Generated automatically from Makefile.in by configure. ################################################### # Vars filled in by ./configure ################################################### CC = cc CFLAGS = -fno-common LDFLAGS = DEFS = -DHAVE_CONFIG_H INSTALL = /usr/bin/install -c -o root -g wheel INSTALL_PROGRAM = install -s -o root -g wheel -m 555 INSTALL_DATA = install -o root -g wheel -m 444 INSTALL_SCRIPT = install -o root -g wheel -m 555 SHELL = /bin/sh # Location of files. prefix = /usr/local exec_prefix = ${prefix} sysconfdir = ${prefix}/etc localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin mandir = ${prefix}/man srcdir = . ################################################### # Program make rules and vars ################################################### TARGET = vrflash # This prolly won't work if you're not using GNU make # VER := $(shell grep '*versionstr' main.c | awk {'print $$4'} | sed 's/^"//g') VER = 0.16 OBJS = main.o xmodem.o vrerror.o progress.o port.o etxack.o vrfile.o CFILES = main.c xmodem.c vrerror.c progress.c port.c etxack.c vrfile.c HFILES = main.h xmodem.h vrerror.h progress.h port.h etxack.h xmodem-load.h vrfile.h config.h all: $(TARGET) $(TARGET): $(OBJS) $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LDFLAGS) %.o: %.c %.h config.h $(CC) $(CFLAGS) $(DEFS) -c $< -o $@ install: all $(INSTALL) -m 755 vrflash $(bindir) uninstall: -rm -f $(bindir)/vrflash tags: $(CFILES) $(HFILES) -rm -f ./tags ctags *.c *.h dist: distclean -rm -rf /tmp/vrflash-${VER} -rm -rf ./vrflash-${VER}.tar.gz mkdir /tmp/vrflash-${VER} for i in ${srcdir}/*; do cp -rf $$i /tmp/vrflash-${VER}/$$i; done cd /tmp; tar cf vrflash-${VER}.tar vrflash-${VER} gzip -9 /tmp/vrflash-${VER}.tar mv /tmp/vrflash-${VER}.tar.gz . rm -rf /tmp/vrflash-${VER} maintainer-clean: -rm -f tags capture.log clean: -rm -f $(OBJS) $(TARGET) distclean: clean maintainer-clean -rm -f config.cache config.log config.status -find . ! -name configure.in -name \*.in -print | \ sed 's/\.in$$//' | \ while read file; do rm -f $$file; done ############################################ # Remake autoconf stuff ############################################ Makefile: Makefile.in config.status ./config.status