-mode=compat
CC = gcc
CFLAGS = -I.. -I../WN -I../defs
LIBS = -l .../LIB/os9.l -s 50
RDIR = RELS

OBJS	= wndex.r init.r content.r serveall.r

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

wndex: $(OBJS)
	chd $(RDIR); $(CC) $(CFLAGS) -o .../CMDS/wndex $(OBJS) $(LIBS)

wndex.r: 	wndex.h err.h ../WN/common.h ../config.h
init.r: 	wndex.h err.h ../WN/common.h ../config.h
content.r: 	wndex.h err.h ../WN/common.h ../config.h ../WN/content.h
serveall.r: 	wndex.h err.h ../WN/common.h ../config.h
