ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/faces/files/Makefile.compface
Revision: 16349
Committed: Sun Apr 20 18:32:36 2014 UTC (10 years ago) by laffer1
File size: 3015 byte(s)
Log Message:
remove cvs2svn:cvs-rev prop

File Contents

# Content
1 #
2 # Compface - 48x48x1 image compression and decompression
3 #
4 # Copyright (c) James Ashton - Sydney University - June 1990.
5 #
6 # Written 11th November 1989.
7 #
8 # Permission is given to distribute these sources, as long as the
9 # copyright messages are not removed, and no monies are exchanged.
10 #
11 # No responsibility is taken for any errors on inaccuracies inherent
12 # either to the comments or the code of this program, but if reported
13 # to me, then an attempt will be made to fix them.
14
15 # SYSV is expected to be overridden by the calling Makefile.
16 #--------------------------------------------------------------------------
17 # If you are running on a Unix System V machine, then you should uncomment
18 # the next definition.
19 #
20 #SYSV = -DSYSV32
21 #--------------------------------------------------------------------------
22 # BINDIR, LIBDIR, INCDIR and MANDIR are expected to be overridden by the
23 # calling Makefile
24
25 BINDIR = ${PREFIX}/bin
26 LIBDIR = ${PREFIX}/lib
27 INCDIR = ${PREFIX}/include
28 MANDIR = ${PREFIX}/man
29
30 NAME = compface
31 UNNAME = uncompface
32 EXECUTABLE = $(BINDIR)/$(NAME)
33 UNEXECUTABLE = $(BINDIR)/$(UNNAME)
34 LIBNAME = lib$(NAME).a
35 SHLIB_MAJOR = 1
36 LIB = $(NAME)
37 SOLIB = lib$(NAME).so.$(SHLIB_MAJOR)
38 NOPROFILE = ''
39 LIBRARY = $(LIBDIR)
40 MAN1DIR = $(MANDIR)/man1
41 MAN3DIR = $(MANDIR)/man3
42 OBJECTS = arith.o file.o compress.o gen.o uncompface.o
43 SOURCES = compface.c uncompface.o arith.c file.c compress.c gen.c \
44 cmain.c uncmain.c
45 SRCS = arith.c file.c compress.c gen.c uncompface.c
46 HDRS = compface.h data.h
47 OTHERS = README $(NAME).1 $(NAME).3 Makefile
48
49 CC ?= cc
50 CDEFS = $(SYSV)
51 CFLAGS += $(CDEFS) $(CCOMP)
52
53 all: lib$(NAME).a $(SOLIB) $(NAME) $(UNNAME)
54
55 $(NAME) : cmain.o compface.o
56 $(CC) $(CFLAGS) -o $(NAME) cmain.o compface.o -L./ -lcompface
57
58 $(UNNAME) : uncmain.o $(LIBNAME)
59 $(CC) $(CFLAGS) -o $(UNNAME) uncmain.o -L./ -lcompface
60
61 lint :
62 lint -abchx $(SOURCES)
63
64 clean :
65 rm -f *.o *po *so *.a *.so.* *.sh core a.out $(NAME) $(UNNAME)
66
67 install : $(NAME) $(UNNAME) $(LIBNAME)
68 install -c -s -o bin -m 755 $(NAME) $(EXECUTABLE)
69 install -c -s -o bin -m 755 $(UNNAME) $(UNEXECUTABLE)
70 install -c -g bin -o bin -m 444 $(NAME).1 $(MAN1DIR)
71 -rm -f $(MAN1DIR)/$(UNNAME).1*
72 ln -fs $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1
73 install -c -o bin -m 444 $(LIBNAME) $(LIBRARY)
74 install -c -o bin -m 444 $(SOLIB) $(LIBRARY)
75 ln -sf $(SOLIB) $(LIBRARY)/lib$(NAME).so
76 install -c -g bin -o bin -m 444 $(NAME).3 $(MAN3DIR)
77 rm -f $(MAN3DIR)/$(UNNAME).3*
78 ln -fs $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3
79 install -m 444 -o bin -g bin -c compface.h $(INCDIR)
80
81 shar :
82 shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh
83 compress $(NAME).sh
84
85 arith.o: arith.c compface.h data.h
86 cmain.o: cmain.c compface.h data.h
87 compface.o: compface.c compface.h data.h
88 compress.o: compress.c compface.h data.h
89 file.o: file.c compface.h data.h
90 gen.o: gen.c compface.h data.h
91 uncmain.o: uncmain.c compface.h data.h
92 uncompface.o: uncompface.c compface.h data.h
93
94 .include <bsd.lib.mk>