Initial commit, 3-52-19 alpha
[cls.git] / Extras / regexp / makefile.vc
blobb9dacbbc539da7ddbfdeba31d4d92436fd12bcd4
1 XLSDIR = ..\..
2 WXLSDIR = $(XLSDIR)\msdos
3 XLSLIB = vcwxls32.lib
5 TOOLS = f:\devstudio\vc
6 CC=$(TOOLS)\bin\cl.exe
7 LINK32=link.exe
8 LIB32=lib.exe
10 DLL_CFLAGS=/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_Windows" /FD \
11   /D POSIX_MISTAKE /D HAVE_MEMMOVE /I $(WXLSDIR) /I $(XLSDIR) /I regex \
12   /D far=
13 DLL_LDFLAGS=$(STDLIBS) /nologo /subsystem:windows /dll /incremental:no\
14  /machine:I386
16 STDLIBS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
17  advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
18  odbccp32.lib
20 .c.obj:
21         $(CC) $(DLL_CFLAGS) -c $<
22 {$(WXLSDIR)}.c.obj:
23         $(CC) $(DLL_CFLAGS) -c $<
24 {regex}.c.obj:
25         $(CC) $(DLL_CFLAGS) -c $<
27 OBJECTS = dllstub.obj regexp.obj \
28         regcomp.obj regerror.obj regexec.obj regfree.obj
30 regexp.dll : $(OBJECTS) $(XLSLIB) vcregexp.def
31     $(LINK32) @<<
32   $(DLL_LDFLAGS) /out:regexp.dll /def:vcregexp.def $(OBJECTS) $(XLSLIB)
35 vcwxls32.lib: $(WXLSDIR)/wxls32.def
36    $(LIB32) /def:$(WXLSDIR)/wxls32.def /out:vcwxls32.lib
38 clean :
39         -@erase *.obj
40         -@erase *.dll
41         -@erase *.exp
42         -@erase *.lib
43         -@erase *.exe
44         -@erase *.idb