Mercurial > DynamicMail
view minimal/makefile.vc @ 4:9648e6980cb5
Fixes for building with Visual Studio 2008. Apparently -debug:full is invalid now.
Also switch to prefering environment variables to find the Dynamic Windows directory.
Finally revert a previous change to load the mysql backend by default.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Fri, 18 Feb 2011 06:00:41 -0600 |
parents | aea3951b71bc |
children | b2e985789750 |
line wrap: on
line source
# DynamicMail Minimal Plugin Makefile for Win32 # Either add environment variables for DWLIBDIR and DWINCDIR or # Uncomment and change these as needed #DWLIBDIR=\netlabs\dwindows\lib #DWINCDIR=\netlabs\dwindows CC = cl CFLAGS = -c -G5 -GD -Zp1 -DWIN32 -D__WIN32__ -DMSVC -DBUILD_DLL -I$(DWINCDIR) -I. -I.. CFLAGS_DEBUG = -Zi CFLAGS_COMPILE = -MTd LIBS = $(DWLIBDIR)\dw.lib $(DWLIBDIR)\dwcompat.lib RES = LINKFLAGS = -machine:i386 -debugtype:cv DLLLINKFLAGS = -dll LINK = link DEFFILE = minimalw.def OBJS = minimal.obj all: minimal.dll clean: -erase *.dll -erase *.exe -erase *.opt -erase *.lib -erase *.obj -erase *.map -erase *.pdb -erase *.ilk -erase *.exp -erase *~ minimal.dll: $(OBJS) $(DEFFILE) $(LINK) @<< -out:$(@) -def:$(DEFFILE) $(LINKFLAGS) $(DLLLINKFLAGS) $(OBJS) $(RES) $(LIBS) << copy minimal.dll .. .c.obj: $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $*.c