# Makefile for Microsoft C 5.1 thanks to Tom Horsley <tom@ssd.harris.com>.
# Slightly modified.  You will need a good "make" utility.  Not tested.
#                                   -- Rahul Dhesi

# "make brik.exe"   -- make brik.exe in current directory
# "make clean"      -- delete brik.exe and *.obj, needs "rm" to be present

# define your library directory below
LIB = C:\C51\LIB

# see "brik.h" for other optional compile-time symbols
CFLAGS = -DMSC51

OBJS = brik.obj getopt.obj turboc.obj initcrc.obj addbfcrc.obj

brik.exe: $(OBJS)
	$(CC) -Febrik.exe -F 8000 $(OBJS) $(LIB)\setargv.obj /link /NOE

turboc.obj: turboc.c brik.h assert.h

initcrc.obj: initcrc.c

brik.obj: brik.c brik.h assert.h

getopt.obj: getopt.c

# there is also addbfcrc.asm for speed, designed to work
# with Turbo C.  It may need to be revised for MSC.  -- R.D.

addbfcrc.obj: addbfcrc.c

clean:
	rm -f *.obj brik.exe
