# file: makefile.win # Bob Farrell (adapted from makefile.dos by G. Moody) # # Makefile for building the DB library to create a Win32 DLL using MS # Visual C++ (version 4.0 or greater). # # USAGE: # ------ # nmake -f makefile.win dll CFILES = dbinit.c annot.c signal.c calib.c dbio.c LFILES = dbinit.obj annot.obj signal.obj calib.obj dbio.obj # ---- MS Visual C++ (Win32) ---- # Compiler stuff CC = cl DEFINES = -D_WINDLL -DUSE_FREAD -DUSE_FWRITE CFLAGS = -Os -O2 -W3 $(DEFINES) # Linker stuff DBDLL = wfdb32.dll DBLIB = wfdb32.lib LINKER = link LFLAGS = -SUBSYSTEM:windows -DLL -OUT:$(DBDLL) -IMPLIB:$(DBLIB) \ -INCREMENTAL:no LLIBS = user32.lib # Except as noted at the end of this file, it should not be necessary to modify # anything below this line. # ----------------------------------------------------------------------------- # Build the Windows DLL version of the library, and the import library dll: del $(DBDLL) $(CC) -c $(CFLAGS) $(CFILES) $(LINKER) $(LFLAGS) $(LFILES) $(LLIBS) del *.obj del *.exp