home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
SRC
/
TO_PORT
/
compfacelib.lzh
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-04-30
|
2KB
|
82 lines
#
# Compface - 48x48x1 image compression and decompression
#
# Copyright (c) James Ashton - Sydney University - June 1990.
#
# Written 11th November 1989.
#
# Permission is given to distribute these sources, as long as the
# copyright messages are not removed, and no monies are exchanged.
#
# No responsibility is taken for any errors on inaccuracies inherent
# either to the comments or the code of this program, but if reported
# to me, then an attempt will be made to fix them.
# BINDIR, LIBDIR, and MANDIR are expected to be overridden by the
# calling Makefile
BINDIR = /usr/local/bin
LIBDIR = /usr/local/lib
MANDIR = /usr/local/man
NAME = compface
UNNAME = uncompface
EXECUTABLE = $(BINDIR)/$(NAME)
UNEXECUTABLE = $(BINDIR)/$(UNNAME)
LIBNAME = lib$(NAME).a
LIBRARY = $(LIBDIR)/$(LIBNAME)
MAN1DIR = $(MANDIR)/man1
MAN3DIR = $(MANDIR)/man3
OBJECTS = arith.o file.o compress.o gen.o uncompface.o
SOURCES = compface.c uncompface.o arith.c file.c compress.c gen.c \
cmain.c uncmain.c
HDRS = compface.h data.h
OTHERS = README $(NAME).1 $(NAME).3 Makefile
CC = cc
CFLAGS = -O
all: $(NAME) $(UNNAME)
$(NAME) : cmain.o compface.o $(LIBNAME)
$(CC) $(CFLAGS) -o $(NAME) cmain.o compface.o $(LIBNAME)
$(UNNAME) : uncmain.o $(LIBNAME)
$(CC) $(CFLAGS) -o $(UNNAME) uncmain.o $(LIBNAME)
$(LIBNAME) : $(OBJECTS)
ar rc $(LIBNAME) $(OBJECTS)
ranlib $(LIBNAME)
lint :
lint -abchx $(SOURCES)
clean :
rm -f *.o *.a *.sh core a.out $(NAME) $(UNNAME)
install : $(NAME) $(UNNAME) $(LIBNAME)
-cp $(NAME) $(EXECUTABLE)
strip $(EXECUTABLE)
-cp $(UNNAME) $(UNEXECUTABLE)
strip $(UNEXECUTABLE)
-cp $(NAME).1 $(MAN1DIR)
rm -f $(MAN1DIR)/$(UNNAME).1
-ln $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1
-cp $(LIBNAME) $(LIBRARY)
-cp $(NAME).3 $(MAN3DIR)
rm -f $(MAN3DIR)/$(UNNAME).3
-ln $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3
shar :
shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh
compress $(NAME).sh
arith.o: arith.c compface.h data.h
cmain.o: cmain.c compface.h data.h
compface.o: compface.c compface.h data.h
compress.o: compress.c compface.h data.h
file.o: file.c compface.h data.h
gen.o: gen.c compface.h data.h
uncmain.o: uncmain.c compface.h data.h
uncompface.o: uncompface.c compface.h data.h