
#   Note:  In terms of compiling, if you do not have my latest
#   support library you may have to do some hacking to get the
#   code to link.
#
#   The precompiled symbol table, SYMBOLS.M, is *only* the AMIGA includes
#   .. */*.h (exec/*.h, etc....).  When generating a precompiled symbol
#   table remember to use the +L compiler option.

CFLAGS= +L +Ivd0:include/symbols.m
OBJS= globals.o command.o keyboard.o main.o text1.o text2.o subs.o refs.o filereq.o menu.o
ASMS= globals.asm command.asm keyboard.asm main.asm text1.asm text2.asm subs.asm refs.asm filereq.asm menu.asm
SRCS= globals.c command.c keyboard.c main.c text1.c text2.c subs.c refs.c filereq.c menu.c
HDR=  defs.h

.c.o:
    cc $(CFLAGS) -o $@ $*.c

.c.asm:
    cc $(CFLAGS) -A -o ram:$@ $*.c


all: $(OBJS)
    ln +Q $(OBJS) -lsup32 -lc32 -O ram:dme

asm: $(ASMS)

arc:
    -delete ram:dme.arc
    arc a ram:dme DME.DOC ram:dme dme.info README sample.edrc macros.edrc dme.refs.1 dme.refs.2

srcarc:
    -delete ram:dmesrc.arc
    arc a ram:dmesrc Makefile $(SRCS) $(HDR)

clean:
    -delete $(OBJS) ram:dme

