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.src.lzh
/
libc
/
Makefile
< prev
next >
Wrap
Makefile
|
1989-07-15
|
960b
|
50 lines
# C news local libc makefile - added by Ian Darwin
# AMIGA
CC = cc
INCLUDE= /include
DEFINES= -I$(INCLUDE) -DFJE -DAMIGA
# AMIGA
# COPTS=-O # -g -p # +L (long ints)
COPTS=
CFLAGS=$(COPTS) $(DEFINES)
LINTFLAGS=-hau $(DEFINES)
# workaround for System V make bug
SHELL = /bin/sh
SRCS=closeall.c efopen.c error.c fgetmfs.c \
nfclose.c standard.c stdfdopen.c warning.c emalloc.c
OBJS = closeall.o efopen.o error.o fgetmfs.o getdate.o nfclose.o \
standard.o stdfdopen.o warning.o emalloc.o
# RANLIB is ranlib on non-USG systems, echo on USG systems
# AMIGA
# RANLIB=ranlib
#RANLIB=echo
.c.o:
$(CC) $(CFLAGS) $*.c
u: $(OBJS)
lb /libcnews.lib -d $(OBJS)
lb /libcnews.lib -a+ $(OBJS)
lb /libcnews.lib -t
# oml /libcnews.a r $(OBJS)
# ar ruv ../libcnews.a $(OBJS)
all: $(OBJS)
libc.a: $(SRCS)
$(CC) $(CFLAGS) -c $?
oml libc.a r $(OBJS)
# ar ru $@ *.o
# rm *.o
# $(RANLIB) $@
lint:
lint $(LINTFLAGS) $(SRCS)
clean:
rm -f *.o *.a getdate.c y.*.h y.*.c