-mode=compat
RDIR = RELS
CC = gcc

#Uncomment these two lines to use the DBM features of authwn
#You will likely have to change DBMLIB to whatever library contains
# the DBM functions dbminit(), fetch() and dbmclose() on your system.
#DBMLIB = -ldbm
#DBMFLAG =  -DDBM_AUTH

LIBS = -l .../lib/os9.l
DBMLIB = 
DBMFLAG = 

CFLAGS = -I ../defs -I ../WN  $(DBMFLAG)

OBJS = authwn.r

.c.r:
	$(CC) -c $(CFLAGS) $*.c -o $(RDIR)/$*.r

all:	authwn
        @echo "AuthWN OK!"

authwn: $(OBJS)
	chd $(RDIR);\
    $(CC) $(CFLAGS) -o .../CMDS/authwn $(OBJS) $(LIBS) $(DBMLIB) -s 15

authwn.r: 		authwn.h  ../config.h

