Imported Upstream version 4.1.6
[platform/upstream/giflib.git] / Makefile.unx
1 #
2 # Top-level Unix makefile for the GIFLIB package
3 # Should work for all Unix versions
4 #
5 VERSION=3.0
6
7 all:
8         cd lib; make static shared
9         cd util; make all
10
11 install:
12         cd lib; make install-lib
13         cd util; make install-all
14
15 uninstall:
16         cd lib; make uninstall-lib
17         cd util; make uninstall-all
18
19 clean:
20         cd lib; make clean
21         cd util; make clean
22         rm -f giflib-$(VERSION)-1.i386.rpm giflib-$(VERSION)-1.src.rpm \
23                 giflib-$(VERSION).tar.gz core giflib.lsm
24
25 giflib-$(VERSION).tar:
26         (cd ..; tar cvf giflib-$(VERSION)/giflib-$(VERSION).tar `cat giflib-$(VERSION)/MANIFEST | sed "/\(^\| \)/s// giflib-$(VERSION)\//g"`)
27 giflib-$(VERSION).tar.gz: giflib-$(VERSION).tar
28         gzip -f giflib-$(VERSION).tar
29
30 dist: Makefile
31         make giflib-$(VERSION).tar.gz
32         lsmgen.sh $(VERSION) `wc -c giflib-$(VERSION).tar.gz` >giflib.lsm
33         make giflib-$(VERSION).tar.gz
34         ls -l giflib-$(VERSION).tar.gz
35         @echo "Don't forget to build RPMs from root!"
36
37 SHAROPTS = -l63 -n giflib -o giflib -a -s esr@snark.thyrsus.com 
38 giflib-$(VERSION).shar:
39         (cd ..; shar $(SHAROPTS) `cat MANIFEST | sed "/\(^\| \)/s// bs-$(VERSION)\//g"`)
40
41 # You need to be root to make this work
42 RPMROOT=/usr/src/redhat
43 RPM = rpm
44 RPMFLAGS = -ba
45 srcdir = .
46 rpm: dist
47         cp giflib-$(VERSION).tar.gz $(RPMROOT)/SOURCES;
48         $(srcdir)/specgen.sh $(VERSION) >$(RPMROOT)/SPECS/giflib.spec
49         cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) giflib.spec     
50         cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/giflib-$(VERSION)*.rpm $(srcdir)
51         cp $(RPMROOT)/SRPMS/giflib-$(VERSION)*.src.rpm $(srcdir)