# MAKEFILE - For SAS-C v5.10 LMK
#
# Compiler options:
# -cf forces the check for prototypes;
# -ci suppresses multiple #includes;
# -cs generates a single copy of all identical string constants;
# -ct generates warnings for structure tags used without being defined;
# -cu forces char to be unsigned;
# -O  requires code optimisation;
# -v  disables the generation of the stack checking code.

C0 = -cfistu -O -v
L0 = LC:blink FROM LIB:cback.o
L1 = LIBRARY LIB:lc.lib LIB:amiga2.0.lib
L2 =
LD = App:Lint/
LH = Include:

SRC = main.c beginend.c dt.c ts.c
INC = main.h ext.h global.h beginend.h ts.h
BIN = main.o beginend.o dt.o ts.o

.c.o:
  LC:lc $(C0) $*

dt: $(BIN)
  $(L0) $(BIN) TO $@ $(L1) $(L2)

dt.lint:  $(SRC) $(INC)
  $(LD)lint >$@ +vm -zero -i$(LH) $(LD)co $(SRC)

beginend.o: beginend.c main.h ext.h beginend.h

dt.o: dt.c main.h ext.h dt.h

main.o: main.c main.h global.h

ts.o: ts.c main.h ext.h ts.h
