LDFLAGS= LINK

SCOPTS=

OBJS= config.o config_glob.o config_scan.o scan.o Base64.o \
	  http.o log.o uri.o graburl.o regex/xmalloc.o regex/alloca.o regex/regex.o

.c.o:
	sc $(SCOPTS) $<

graburl: libgurl/libgurl.a $(OBJS)
	sc link to graburl with <<
$(OBJS)
<

regex/xmalloc.o: regex/xmalloc.c

regex/alloca.o: regex/alloca.c

regex/regex.o: regex/regex.c regex/regex.h

graburl.o: graburl.c config.h log.h

config.o: config.c config.h macros.h license.h

config_glob.o: config_glob.c config.h

config_scan.o: config_scan.c macros.h config_scan.h

scan.o: scan.c scan.h config.h config_scan.h graburl.h uri.h log.h macros.h

http.o: http.c http.h log.h graburl.h config.h macros.h

uri.o: uri.c macros.h config.h log.h uri.h

Base64.o: Base64.c Base64.h

libgurl/libgurl.a:
	echo "cd libgurl and type smake"

clean: cleanexec cleannoexec

cleanexec:
	-delete >nil: graburl

cleannoexec:
	-delete >nil: *.o core
	-delete >nil: libgurl/#?.o libgurl/gurl.lib
