#!Sc:C/Smake
#
#  Makefile for NPNS
#
#  $Id: SMakefile 1.1 1996/05/06 22:54:06 nagd Exp $
#

INC	=	NPNS.h

GST	=	npns.gst

OPT	=	SCOPTIONS

OBJS	=	SaveFailed.o \
 		CopyFile.o \

SOBJS	=	SendArticle.o \
		SendBuf.o \
		SpoolContents.o \
		CommandContents.o

LIB	=	Prog:Work/Lib/NNet.lib

SBIN	=	sendnews
PBIN	= 	postnews

CC	=	sc
CFLAGS	=	GST=$(GST) NOSTDIO

all:	 $(OBJS) $(SOBJS) $(SBIN) $(PBIN)
 
.c.o:		$(INC) $(GST) $(OPT)
	$(CC) $(CFLAGS) NOLINK $< OBJNAME=$@

SendArticle.o:		SendArticle.c
SendBuf.o:		SendBuf.c
SaveFailed.o:		SaveFailed.c
CopyFile.o:		CopyFile.c
SpoolContents.o: 	SpoolContents.c
CommandContents.o:	CommandContents.c

gst:		$(INC)
	-sc  MGST=$(GST) $(INC)

$(SBIN):		$(INC) $(OBJS) $(SOBJS) $(SBIN).c $(OPT)
	$(CC) $(CFLAGS) LINK $(SBIN).c $(OBJS) $(SOBJS) TO $(SBIN) LIB=netlib:netd.lib

$(PBIN):		$(INC) $(OBJS) $(PBIN).c $(OPT)
	$(CC) $(CFLAGS) LINK $(PBIN).c $(OBJS) TO $(PBIN)

install:
