1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
XLSDIR = ..\..
WXLSDIR = $(XLSDIR)\msdos
XLSLIB = $(WXLSDIR)\wxls32.lib
BCC32 = $(TOOLBIN)\BCC32
LINK32 = $(TOOLBIN)\ILINK32
TOOLS = F:\BC5
TOOLBIN = $(TOOLS)\BIN
LIBDIRS = $(TOOLS)\LIB
INCDIRS = $(TOOLS)\INCLUDE;$(WXLSDIR);$(XLSDIR);.\regex
DEFINES = -DSTRICT -DPOSIX_MISTAKE -DHAVE_MEMMOVE
CFLAGS = -w- -v -H=regexp.csm -WD -I$(INCDIRS) $(DEFINES)
LDOPTS = -L$(LIBDIRS) -Tpd -aa -c $(TOOLS)\LIB\c0d32.obj
.c.obj:
$(BCC32) +cfgdll.cfg -c $<
{$(WXLSDIR)}.c.obj:
$(BCC32) +cfgdll.cfg -c $<
{regex}.c.obj:
$(BCC32) +cfgdll.cfg -c $<
OBJECTS = dllstub.obj regexp.obj \
regcomp.obj regerror.obj regexec.obj regfree.obj
regexp.dll : $(OBJECTS) $(XLSLIB) regexp.def
$(LINK32) @&&|
/v $(LDOPTS) $(OBJECTS)
$<,$*
$(XLSLIB) import32.lib cw32.lib
regexp.def
|
$(OBJECTS) : cfgdll.cfg
# Compiler configuration files
cfgdll.cfg : makefile.bc
Copy &&|
$(CFLAGS)
| $@
# Remove all generated files
clean:
-@erase *.exe
-@erase *.lib
-@erase *.dll
-@erase *.obj
-@erase *.cfg
-@erase *.map
|