
# The following are overridded in ../../Makefile:
taylorsrc=../../uucp-1.04jpatched
prefix = /local
sbindir = $(prefix)/lib/uucp
owner = uucp
CC = cc
CFLAGS = -O
RANLIB = @:
LIBS =  -lsocket -lnsl
INSTALL = /usr/ucb/install -c

INCLUDES = -I..
#DEFINES = -DDEBUG -D_KERNEL
DEFINES = -D_KERNEL

OBJS = slp.o slcompress.o

.c.o:
	$(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $*.c

all: Driver.o

Driver.o: $(OBJS)
	$(LD) -r -o $@ $(OBJS)

lint:
	lint -x -m -D_KERNEL $(INCLUDES) $(OBJS:.o=.c)

clean:
	rm -rf *.o ../ID/Driver.o

install: all
	cd ../ID; cp ../io/Driver.o .
	cd ../ID; /etc/conf/bin/idinstall -d slp; /etc/conf/bin/idinstall -a -k -mnspo slp
	cp ../sys/slp.h /usr/include/sys
	cp ../sys/slcompress.h /usr/include/sys
