# --------------------------------------------------------------------
# link:  http://bb4win.org
# email: grischka@bonbon.net
# --------------------------------------------------------------------

# makefile for bboscilliscope.dll / for the bcc55 free compiler (borland)

# to compile:

# - set the PATH variable to your bcc55\bin directory
# - go to the source directory
# - run: make -f makefile-bcc
#    or: make -f makefile-bcc install
#    or: make -f makefile-bcc clean

OBJ     = bboscilliscope.obj
BIN     = bboscilliscope.dll
BBLIB   = ..\..\includes\borland\bbox.lib
DEF     = ..\..\includes\borland\bb-plugin.def
RES     =

all: install

compile: $(BIN)

# edit this to where the plugin should be copied when ready:

install: compile
	copy $(BIN) d:\blackbox\plugins\bboscilliscope

clean:
	del *.obj
	del *.res
	del *.dll
	del *.tds

# --------------------------------------------------------------------
CC      = bcc32
LINKER  = ilink32
RC      = brcc32 -i$(MAKEDIR)\..\include

CFLAGS  = -c -5 -O1 -tW -w- -Vd -x- #-v
LFLAGS  = -aa -Tpd -Gn -x #-v
STARTUP = c0d32.obj
BCCLIBS = import32.lib cw32.lib

$(BIN): $(OBJ) $(RES) makefile-bcc
	$(LINKER) $(LFLAGS) $(STARTUP) $(OBJ),$(BIN),,$(BCCLIBS) $(BBLIB),$(DEF),$(RES)
	dir $(BIN)

.c.obj:
	$(CC) $(CFLAGS) $<

.cpp.obj:
	$(CC) $(CFLAGS) $<

.rc.res:
	$(RC) $<

.asm.obj:
	tasm32 -ml $<

# --------------------------------------------------------------------
