srcdir = .

# These CFLAGS values, all pertaining to shar, are not auto-configured:
# -DDEBUG=1		use -$ on call for activating debugging output
# -DMSDOS=1		probably doesn't work but accounts for some old code
# -DNO_WALKTREE=1	inhibit recursive walk on directory parameters
# -DSTRNCMP_IS_FAST=1	if unefficient to compare first chars before strncmp

AR = ar
CC = gcc
CFLAGS = -g -O
CPPFLAGS = 
DEFS = -DHAVE_CONFIG_H
LDFLAGS = 
LIBS = 
MAKEINFO = makeinfo
RANLIB = ranlib

COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@


INCLUDES = -I. -I$(srcdir)

HEADERS = system.h
SOURCES = uudeall.c
OBJECTS = uudeall.o
LIBOBJS = error.o

uudeall: uudeall.o libshutl.a
	$(LINK) uudeall.o libshutl.a $(LIBS)

$(OBJECTS): config.h system.h


libshutl.a: $(LIBOBJS)
	rm -f libshutl.a
	$(AR) cru libshutl.a $(LIBOBJS)
	$(RANLIB) libshutl.a

$(LIBOBJS): config.h

mostlyclean:
	rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
	rm -f *.a *.o *._c *._o core core.*
	rm -f *.tmp test.bin test.tmp

clean: mostlyclean
	rm -f uudeall

