"Fossies" - the Fresh Open Source Software Archive

Member "balance-3.57/Makefile" (28 Apr 2015, 1912 Bytes) of package /linux/privat/balance-3.57.tar.gz:


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": 3.56_vs_3.57.

    1 # $Id: Makefile,v 1.14 2015/04/28 07:49:37 t Exp t $
    2 
    3 #CFLAGS=-g -I.
    4 CFLAGS=-O2 -Wall -Wstrict-prototypes -Wuninitialized
    5 
    6 # uncomment for any OS other than Cygwin
    7 BALANCE=balance
    8 ROOT=root
    9 INSTALL=install
   10 BINDIR=/usr/sbin
   11 MANDIR=${BINDIR}/../man/man1
   12 
   13 # uncomment for Solaris:
   14 # LIBRARIES=-lsocket -lnsl
   15 # INSTALL=/usr/ucb/install
   16 # BINDIR=/usr/local/libexec
   17 
   18 # uncomment for Cygwin:
   19 # LIBRARIES=-L/usr/local/lib -lcygipc
   20 # BALANCE=balance.exe
   21 # ROOT=Administrators
   22 
   23 CC=gcc
   24 RELEASE=3.57
   25 
   26 all: balance 
   27 
   28 balance: balance.o butils.o
   29 	$(CC) $(CFLAGS) -I. -o balance balance.o butils.o $(LIBRARIES)
   30 
   31 balance.o: balance.c balance.h
   32 	$(CC) $(CFLAGS) -I. -c balance.c
   33 
   34 butils.o: butils.c balance.h
   35 	$(CC) $(CFLAGS) -I. -c butils.c
   36 
   37 balance.pdf: balance.ps
   38 	ps2pdf balance.ps balance.pdf	
   39 		
   40 balance.ps: balance.1
   41 	troff -Tpost -man balance.1 | /usr/lib/lp/postscript/dpost > balance.ps
   42 	# groff -f H -man balance.1 > balance.ps
   43 
   44 ci:		
   45 	ci -l *.c *.h Makefile balance.1 README balance.spec 
   46 
   47 clean:
   48 	rm -f $(BALANCE) *.o balance.ps balance.pdf
   49 
   50 install:
   51 	$(INSTALL) -o $(ROOT) -g $(ROOT) -m 755  $(BALANCE) \
   52 		$(DESTDIR)$(BINDIR)/$(BALANCE) 
   53 	$(INSTALL) -o $(ROOT) -g $(ROOT) -m 755  balance.1 \
   54 		$(DESTDIR)$(MANDIR) 
   55 	mkdir -p $(DESTDIR)/var/run/balance
   56 	chmod 1777 $(DESTDIR)/var/run/balance
   57 
   58 release: balance.pdf
   59 	rm -rf ./releases/balance-$(RELEASE)
   60 	mkdir ./releases/balance-$(RELEASE)
   61 	cp balance.1 balance.pdf balance.c balance.h butils.c COPYING Makefile README ./releases/balance-$(RELEASE)
   62 	cp balance.spec ./releases/balance-$(RELEASE)/balance.spec
   63 	cd releases; tar -cvf balance-$(RELEASE).tar ./balance-$(RELEASE)
   64 	cd releases; gzip balance-$(RELEASE).tar
   65 
   66 rpm:	ever	
   67 	cp releases/balance-$(RELEASE).tar.gz /usr/src/redhat/SOURCES/
   68 	rpmbuild -ba balance.spec
   69 	cp /usr/src/redhat/SRPMS/balance-$(RELEASE)-1.src.rpm ./releases
   70 	cp /usr/src/redhat/RPMS/i386/balance-$(RELEASE)-1.i386.rpm ./releases
   71 
   72 ever:
   73