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