# Project: Indent (Archimedes port)
# by Steven Flintham 

# Thursday 26th October 1995
# Saturday 25th November 1995

CC         = cc
# The -jUnix:^.clib is a bit of a bodge as my compiler doesn't seem to work
# correctly with the -IUnix: -JUnix: switches suggested in UnixLib's !Help file
CFLAGS     = -c -jUnix:^.clib
LINK       = drlink
LINKFLAGS  = 
SQUEEZE    = @Echo *** Run !Crunch on

FILES      = o.args o.indent o.io o.lexi o.parse o.pr_comment o.indntglobs
LIBRARIES  = Unix:o.UnixLib

# Several errors are given during compilation - these are not serious and
# without this it is necessary to call amu several times or explicitly specify
# the -i option on the command line
.IGNORE:

.SUFFIXES: .o .c
.c.o:;     $(CC) $(CFLAGS) -o $@ $<

indent: $(FILES) $(LIBRARIES)
	$(LINK) -o $@ $(LINKFLAGS) $(FILES) $(LIBRARIES)
	$(SQUEEZE) $@

clean:;	%wipe o.* ~C ~F ~R V
