home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume25
/
freeze
/
part02
/
makefile
< prev
next >
Wrap
Makefile
|
1991-11-04
|
2KB
|
90 lines
SHELL = /bin/sh
DEST = /usr/local/bin
MANDEST = /usr/local/man/man1
EXTHDRS =
HDRS = bitio.h\
compat.h\
freeze.h\
huf.h\
lz.h\
patchlevel.h
LDFLAGS =
LIBS = -lc_s # shared library
CC = gcc
CFLAGS = -DBITS=18 -O -DCOMPAT -DFAST -fstrength-reduce #-DBSD42 -DSUN4
LINTFLAGS = -DBITS=15 -DCOMPAT -DDEBUG -DGATHER_STAT -x -DFAST
MAKEFILE = makefile
OBJS = bitio.o\
debug.o\
decode.o\
default.o\
encode.o\
freeze.o\
huf.o\
lz.o
PROGRAM = freeze
CATMAN = freeze.man
MAN = freeze.1
SRCS = bitio.c\
debug.c\
decode.c\
default.c\
encode.c\
freeze.c\
huf.c\
lz.c
all: $(PROGRAM) statist $(CATMAN)
lint: $(SRCS)
lint $(LINTFLAGS) $(SRCS) > lint.out
$(PROGRAM): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
statist: statist.o lz.o
$(CC) $(CFLAGS) $(LDFLAGS) -o statist statist.o lz.o $(LIBS)
clean:; rm -f *.o *.b .,* core *.out $(PROGRAM) statist
install: $(DEST)/$(PROGRAM) $(MANDEST)/$(MAN)
patch:; rm -f patch.out
-for i in ../distribution/* ; do \
(diff -c $$i `basename $$i` >> patch.out); \
done
$(DEST)/$(PROGRAM): $(PROGRAM)
install -s -c $(PROGRAM) $(DEST)
ln -f $(DEST)/$(PROGRAM) $(DEST)/melt
ln -f $(DEST)/$(PROGRAM) $(DEST)/fcat
$(MANDEST)/$(MAN): $(CATMAN)
cp $(CATMAN) $(MANDEST)/$(MAN)
chmod +r $(MANDEST)/$(MAN)
ln -f $(MANDEST)/$(MAN) $(MANDEST)/melt.1
ln -f $(MANDEST)/$(MAN) $(MANDEST)/fcat.1
$(CATMAN): $(MAN)
nroff -man < $(MAN) > $(CATMAN)
###
bitio.o: freeze.h compat.h bitio.h
debug.o: freeze.h compat.h huf.h bitio.h
decode.o: freeze.h compat.h huf.h bitio.h
default.o: freeze.h compat.h
encode.o: freeze.h compat.h lz.h huf.h bitio.h
freeze.o: freeze.h compat.h lz.h huf.h patchlevel.h
huf.o: freeze.h compat.h huf.h bitio.h
lz.o: freeze.h compat.h lz.h
statist.o: freeze.h compat.h lz.h