home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
cnews.orig.lzh
/
libcnews
/
Makefile
< prev
next >
Wrap
Makefile
|
1989-06-27
|
995b
|
42 lines
# libcnews makefile
INCLUDE=../include
DEFINES=-I$(INCLUDE)
COPTS= -O # -pg -p
CFLAGS= $(COPTS) $(DEFINES)
LINTFLAGS=-hau $(DEFINES)
LIB=libcnews.a
# RANLIB is ranlib on non-USG systems, echo on USG systems
RANLIB=ranlib
#RANLIB=:
SRCS=complain.c config.c fopenclex.c hostname.c \
lock.c ltoza.c ngmatch.c readline.c \
string.c strlower.c strsave.c str3save.c time.c
OBJS = complain.o config.o fopenclex.o gethdr.o hostname.o lock.o ltoza.o \
nemalloc.o ngmatch.o str3save.o string.o strlower.o strsave.o time.o
# workaround for System V make bug
SHELL = /bin/sh
u: $(OBJS)
ar ruv ../libcnews.a $(OBJS)
all: $(OBJS)
$(LIB): $(SRCS)
$(CC) $(CFLAGS) -c $?
ar rv $@ *.o
rm *.o
$(RANLIB) $@
lint:
lint $(LINTFLAGS) $(SRCS)
clean:
rm -f *.o
# header dependencies for libcnews.a
config.o: $(INCLUDE)/news.h $(INCLUDE)/config.h
lock.o: $(INCLUDE)/news.h
ngmatch.o: $(INCLUDE)/news.h
time.o: $(INCLUDE)/news.h
# ltoza.o: $(INCLUDE)/stdlib.h # trouble if stdlib.h is system one, not ours