"Fossies" - the Fresh Open Source Software Archive

Member "hd2u-1.0.4/Makefile.in" (1 Sep 2017, 3840 Bytes) of package /linux/privat/hd2u-1.0.4.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": 1.0.3_vs_1.0.4.

    1 # makefile for 'hd2u'
    2 #
    3 # Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2010 Peter Hanecak <hany@hany.sk>
    4 #
    5 # This program is free software; you can redistribute it and/or
    6 # modify it under the terms of the GNU General Public License
    7 # as published by the Free Software Foundation; either version 2
    8 # of the License, or (at your option) any later version.
    9 #
   10 # This program is distributed in the hope that it will be useful,
   11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13 # GNU General Public License for more details.
   14 #
   15 # You should have received a copy of the GNU General Public License
   16 # along with this program; if not, write to the Free Software
   17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
   18 #
   19 # See the COPYING file for license information.
   20 
   21 ### CONFIGURATION ###############################
   22 # feel free to set following values as you want #
   23 #################################################
   24 
   25 prefix=@prefix@
   26 exec_prefix=@exec_prefix@
   27 BIN_DIR=@bindir@
   28 VPATH=@srcdir@
   29 
   30 PACKAGE_NAME=@PACKAGE_NAME@
   31 PACKAGE_VERSION=@PACKAGE_VERSION@
   32 
   33 #################################################
   34 # end of configuration                          #
   35 #################################################
   36 
   37 CC = @CC@
   38 CFLAGS = @CFLAGS@ -Wall -pedantic
   39 TARGET = dos2unix
   40 SCRIPTS = \
   41 	configure \
   42 	install-sh \
   43 	test.sh
   44 DOC = \
   45 	AUTHORS \
   46 	COPYING \
   47 	CREDITS \
   48 	ChangeLog \
   49 	INSTALL \
   50 	NEWS \
   51 	README \
   52 	TODO
   53 INSTALL = @INSTALL@
   54 LIBS= @LIBS@
   55 
   56 
   57 .PHONY:	all all-optimized benchmark clean install test
   58 
   59 
   60 all:	$(TARGET)
   61 
   62 $(TARGET):	$(TARGET).c config.h
   63 	$(CC) $(CFLAGS) -o $@ $(@:%=%.c) $(LIBS)
   64 
   65 
   66 all-optimized:		$(TARGET)-optimized
   67 
   68 $(TARGET)-optimized:	$(TARGET).pa benchmark1 $(TARGET).bp benchmark2
   69 	@echo "You should check BENCHMARKING results: second one should be better."
   70 
   71 $(TARGET).pa:
   72 	$(CC) $(CFLAGS) $(CFLAGS_PROFILE) -fprofile-arcs -o $(TARGET) $(TARGET).c $(LIBS)
   73 
   74 $(TARGET).bp:
   75 	$(CC) $(CFLAGS) $(CFLAGS_PROFILE) -fbranch-probabilities -o $(TARGET) $(TARGET).c $(LIBS)
   76 
   77 
   78 test:	$(TARGET)
   79 	./test.sh \
   80 		AUTHORS ChangeLog configure.in COPYING CREDITS \
   81 		dos2unix.c INSTALL Makefile.in NEWS README TODO
   82 
   83 benchmark benchmark1 benchmark2:	$(TARGET)
   84 	@echo
   85 	@echo BENCHMARKING:
   86 	@echo
   87 	@time ./test.sh --silent \
   88 		$(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) \
   89 		$(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) \
   90 		$(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) \
   91 		$(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) \
   92 		$(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC) $(DOC)
   93 	@echo
   94 
   95 
   96 rebuild:	cleanall $(TARGET)
   97 
   98 clean:
   99 	rm -f *.o
  100 	rm -f core
  101 	rm -f *~
  102 	rm -f *.bak
  103 	rm -f *.test.tmp
  104 
  105 cleanall:	clean
  106 	rm -f *.out
  107 	rm -f $(TARGET)
  108 	rm -f $(TARGET).gc??
  109 	rm -fr autom4te.cache
  110 	rm -f config.h
  111 	rm -f config.log
  112 	rm -f config.cache
  113 	rm -f config.status
  114 	rm -f Makefile
  115 	rm -f configure
  116 
  117 mrproper:	cleanall
  118 distclean:	cleanall
  119 
  120 install:
  121 	$(INSTALL) -d -m 755 $(BUILD_ROOT)$(BIN_DIR)
  122 	$(INSTALL) -m 755 -s $(TARGET) $(BUILD_ROOT)$(BIN_DIR)
  123 
  124 tarball:
  125 	$(INSTALL) -d -m 755 ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  126 	$(INSTALL) -m 644 $(TARGET).c ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  127 	$(INSTALL) -m 755 $(SCRIPTS) ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  128 	$(INSTALL) -m 644 $(DOC) ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  129 	$(INSTALL) -m 644 Makefile.in configure.in config.h.in ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  130 
  131 	$(INSTALL) -d -m 755 ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)/packaging
  132 	$(INSTALL) -m 644 packaging/hd2u.spec ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)/packaging
  133 
  134 	tar cfz $(PACKAGE_NAME)-$(PACKAGE_VERSION).tgz $(PACKAGE_NAME)-$(PACKAGE_VERSION)
  135 	rm -rf ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)/*
  136 	rmdir ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)