SRC = Date.c BindNamesII.c AssignNode.c Dos.c
OBJ = $(SRC:*.c:*.o)

GCCFLAGS = -noixemul -m68040 -W -Wall -Wshadow -Wpointer-arith  -Wcast-align \
-Waggregate-return -Wnested-externs -Winline -O3
# -fpic

All : Rev Proto.h BindNamesII

Rev :
    Rev -s -i -p -t
    Set CFLAGS "-s -d1"

Proto.h : $(SRC)
    MakeProto -o %(left) %(right)

BindNamesII : $(OBJ)
    Dcc $(CFLAGS) -o %(left) %(right)

$(OBJ) : $(SRC)
    Dcc -s -d1 -c -o %(left) %(right)

$(OBJ) :: AssignNode.h

Date.c : Rev.h

Release : ReleaseRev Proto.h BindNamesII
    LhA a BindNamesII.LhA $(SRC) *.h DMakeFile BindNamesII(%|.guide|.readme)(%|.info) DCCOPTS

ReleaseRev :
    Rev -i -p -t -b
    Set CFLAGS ""
    Copy BindNamesII BindNamesII.ld


# Definitions to compile with Gcc. Type "DMake Gnu" to do this.

$(OBJ:*.o:*_g.o) :: AssignNode.h

Gnu : Rev Proto.h GccBindNamesII

GccBindNamesII : $(OBJ:*.o:*_g.o)
    Gcc.rexx $(GCCFLAGS) -o %(left) %(right)

$(OBJ:*.o:*_g.o) : $(SRC)
    Gcc.rexx $(GCCFLAGS) -c -o %(left) %(right)
