# Use the C or C++ compiler
Compiler                = wcc
Exe_file                = bison.exe


####################
## Makefile rules ##
####################

$(Exe_file) : ALLOCATE.OBJ CLOSURE.OBJ CONFLICT.OBJ DERIVES.OBJ FILES.OBJ &
              GETARGS.OBJ GETOPT.OBJ GRAM.OBJ LALR.OBJ LEX.OBJ LR0.OBJ &
              MAIN.OBJ NULLABLE.OBJ OUTPUT.OBJ PRINT.OBJ READER.OBJ &
              REDUCE.OBJ SYMTAB.OBJ VERSION.OBJ WARSHALL.OBJ MKTEMP.OBJ
             *wlink name $(Exe_file) &
              file {$<}

clean
        del *.obj
        del *.err
        del *.bak

.c.obj:
        $(Compiler) $<

.asm.obj:
        wasm -3pr $<
