#Makefile for the amiga port of origami
#Version 1.6.92.1
#
SC=             sc
SLINK=          slink
#
#FLAGS1 : compiler options for compiler behaviour
FLAGS1=         ANSI NOICONS STRCON WARNVOIDRETURN IGNORE=104
#
#FLAGS2 : include options
FLAGS2=         IDIR=origami:
#
#FLAGS3 : define options
FLAGS3=         DEF=MOUSY DEF=VIEWRC DEF=AMIGA
#
#FLAGS4 : additional options
FLAGS4=         OPTIMIZE OptComp=0 OptInl OptInlocal Optsize
#
#DEBUG_FLAGS : define DEBUG for DEGUB usage
#DEBUG_FLAGS=    DEBUG=symbolflush
#DEB_LD_FLAGS=   ADDSYM
#
#FLAGS5 : link options for linker behaviour
FLAGS5=         BATCH
#
#FLAGS6 : library options
FLAGS6=         LIB LIB:sc.lib LIB LIB:amiga.lib LIB /lib/orilib.lib

SCFLAGS=        ResOpt $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4) $(DEBUG_FLAGS)
LDFLAGS=        $(FLAGS5) $(FLAGS6) $(DEB_LD_FLAGS)

.c.o:
                $(SC) $(SCFLAGS) $*

OBJS=           main.o text.o

#{{{}}}
#{{{  -> all
all:            viewrc
#}}}

#{{{  viewrc
viewrc:         $(OBJS)
                $(slink) <WITH <
                from lib:c.o+$(OBJS)
                to viewrc $(LDFLAGS)
                <
#}}}

#{{{  -> install
install:
                copy viewrc //bin
#}}}

#{{{  -> reset
reset:          clean
                -delete viewrc smakefile
#}}}

#{{{  -> clean
clean:
                -delete \#?.o \#?.lnk \#?.tmp \#?.info
#}}}
