[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Borland BCC 5.5?
- From: Bob Paddock <bpaddock@...>
- Date: Sat, 21 Jul 2001 19:11:09 -0400
> >I'm trying to link the lua.lib file found at the above URL using the free
> >Boarland Command Line Compiler version 5.5.
> >A example bcc makefile, or makefile for bcc that builds lua.lib, is what
> >I'm hoping for.
>
> This is the one we use to build that library.
Attached are two makefiles that use the native Borland BCC5.5 command line
tools/make program to build lua.lib and lualib.lib.
I hope they can be added to the official distrubtion to save the next person
the hassle I had comming up with them, please.
#############################################
# BCC55 makefile for Lua core library
CPPFLAGS = -I..\INCLUDE -DWIN32 -DNDEBUG -D_BC55 -O2
# Automatically check for header dependencies:
.autodepend
.suffixes:
.suffixes: .asm .c .cpp
.c.obj:
bcc32 $(CPPFLAGS) -c {$< }
.cpp.obj:
bcc32 $(CPPFLAGS) -c {$< }
OBJS= \
lapi.obj \
lcode.obj \
ldebug.obj \
ldo.obj \
lfunc.obj \
lgc.obj \
llex.obj \
lmem.obj \
lobject.obj \
lparser.obj \
lstate.obj \
lstring.obj \
ltable.obj \
ltests.obj \
ltm.obj \
lundump.obj \
lvm.obj \
lzio.obj
# Save target(s) even if the build fails, don't delete all because of one bad:
.precious: $(OBJS)
lua.lib: $(OBJS)
@del lua.lib
@del lua.rsp
&echo +$** &>>lua.rsp
tlib /C lua.lib @lua.rsp,lualib.lst
# Implicit rule to build all .obj files:
$(OBJS):
clean:
@del *.obj
@del *.rsp
@del *.lst
#################################
# BCC55 makefile for Lua library
CPPFLAGS = -I..\..\INCLUDE -DWIN32 -DNDEBUG -D_BC55 -O2
# Automatically check for header dependencies:
.autodepend
.suffixes:
.suffixes: .asm .c .cpp
.c.obj:
bcc32 $(CPPFLAGS) -c {$< }
.cpp.obj:
bcc32 $(CPPFLAGS) -c {$< }
OBJS= \
lauxlib.obj \
lbaselib.obj \
ldblib.obj \
liolib.obj \
lmathlib.obj \
lstrlib.obj
# Save target(s) even if the build fails, don't delete all because of one bad:
.precious: $(OBJS)
lualib.lib: $(OBJS)
@del lualib.lib
@del lualib.rsp
&echo +$** &>>lualib.rsp
tlib /C lualib.lib @lualib.rsp,lualib.lst
# Implicit rule to build all .obj files:
$(OBJS):
clean:
@del *.obj
@del *.rsp
@del *.lst