# MAKEFILE - For SAS C v5.10 LMK

ROOT = Sys
L0 = LC:blink FROM LIB:c.o                            # BLINK leader options
L2 =                                                  # DEBUG BLINK options
LD = $(ROOT):Lint/                                    # LINT directory
SOURCES = pf2.c umain.c wb.c print.c                  # PF2 source files
LH1 = INCLUDE:                                        # LINT includes



# To generate the program version that uses req.library for the file
# requester, use the following options:
#C0 = -cus -O -dREQ
#L1 = LIBRARY LIB:lc.lib LIB:amiga.lib
#LINK = $(L0) umain.o LIB:lreqglue.o pf2.o wb.o print.o

# To generate the program version that uses asl.library for the file
# requester, use the following options:
#C0 = -cus -O -dASL
#L1 = LIBRARY LIB:lc.lib LIB:amiga.lib
#LINK = $(L0) umain.o pf2.o wb.o print.o

# To generate the program version that uses req.library before AmigaDOS
# Rev. 37 and asl.library otherwise (for the file requester only), use
# the following options:
C0 = -cus -O -dBOTH
L1 = LIBRARY LIB:lc.lib LIB:amiga.lib
LINK = $(L0) umain.o LIB:lreqglue.o pf2.o wb.o print.o



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

max:      max.o
  $(L0) max.o TO max $(L1) $(L2)
  delete max.info

pf1:      pf1.o
  $(L0) pf1.o TO pf1 $(L1) $(L2)
  delete pf1.info

pf2:      pf2.o umain.o wb.o print.o
  $(LINK) TO pf2 $(L1) $(L2)

max.lint: max.c
  $(LD)Lint >max.lint +vm -zero -i$(LH1) $(LD)co max

pf1.lint: pf1.c
  $(LD)Lint >pf1.lint +vm -zero -i$(LH1) $(LD)co pf1

pf2_req.lint: $(SOURCES)
  $(LD)Lint >pf2_req.lint +vm -zero -i$(LH1) $(LD)co -dREQ $(SOURCES)

pf2_asl.lint: $(SOURCES)
  $(LD)Lint >pf2_asl.lint +vm -zero -i$(LH1) $(LD)co -dASL $(SOURCES)

pf2_both.lint: $(SOURCES)
  $(LD)Lint >pf2_both.lint +vm -zero -i$(LH1) $(LD)co -dBOTH $(SOURCES)

max.o:    max.c

pf1.o:    pf1.c pf1.h mlo.h

pf2.o:    pf2.c pf2.h global.h asl_fr.h mlo.h

print.o:  print.c pf2.h ext.h mlo.h

umain.o:  umain.c

wb.o:     wb.c pf2.h ext.h aw.h mlo.h
