apriori.mak
上传用户:lengbin
上传日期:2010-03-31
资源大小:121k
文件大小:3k
- #-----------------------------------------------------------------------
- # File : apriori.mak
- # Contents: build apriori program
- # Author : Christian Borgelt
- # History : 26.01.2003 file created
- #-----------------------------------------------------------------------
- CC = cl.exe
- LD = link.exe
- DEFS = /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS"
- CFLAGS = /nologo /ML /W3 /GX /O2 /I $(UTILDIR) $(DEFS) /YX /FD /c
- LDFLAGS = /nologo /subsystem:console /incremental:no /machine:I386
- LIBS = kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
- advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
- odbc32.lib odbccp32.lib
- THISDIR = ....apriorisrc
- UTILDIR = ....utilsrc
- HDRS = $(UTILDIR)vecops.h $(UTILDIR)symtab.h
- $(UTILDIR)tfscan.h $(UTILDIR)scan.h
- tract.h istree.h
- OBJS = $(UTILDIR)vecops.obj $(UTILDIR)nimap.obj
- $(UTILDIR)tfscan.obj $(UTILDIR)scan.obj
- tract.obj istree.obj apriori.obj
- #-----------------------------------------------------------------------
- # Build Program
- #-----------------------------------------------------------------------
- all: apriori.exe
- apriori.exe: $(OBJS)
- $(LD) $(LDFLAGS) $(OBJS) $(LIBS) /out:$@
- #-----------------------------------------------------------------------
- # Item and Transaction Management
- #-----------------------------------------------------------------------
- tract.obj: $(UTILDIR)symtab.h tract.h tract.c apriori.mak
- $(CC) $(CFLAGS) tract.c /Fo$@
- #-----------------------------------------------------------------------
- # Frequent Item Set Tree Management
- #-----------------------------------------------------------------------
- istree.obj: tract.h istree.h istree.c apriori.mak
- $(CC) $(CFLAGS) istree.c /Fo$@
- #-----------------------------------------------------------------------
- # Main Program
- #-----------------------------------------------------------------------
- apriori.obj: $(UTILDIR)symtab.h tract.h istree.h apriori.c apriori.mak
- $(CC) $(CFLAGS) /D NIMAPFN apriori.c /Fo$@
- #-----------------------------------------------------------------------
- # External Modules
- #-----------------------------------------------------------------------
- $(UTILDIR)vecops.obj:
- cd $(UTILDIR)
- $(MAKE) /f util.mak vecops.obj
- cd $(THISDIR)
- $(UTILDIR)nimap.obj:
- cd $(UTILDIR)
- $(MAKE) /f util.mak nimap.obj
- cd $(THISDIR)
- $(UTILDIR)tfscan.obj:
- cd $(UTILDIR)
- $(MAKE) /f util.mak tfscan.obj
- cd $(THISDIR)
- $(UTILDIR)scan.obj:
- cd $(UTILDIR)
- $(MAKE) /f util.mak scan.obj
- cd $(THISDIR)
- #-----------------------------------------------------------------------
- # Install
- #-----------------------------------------------------------------------
- install:
- -@copy apriori.exe c:homebin
- #-----------------------------------------------------------------------
- # Clean up
- #-----------------------------------------------------------------------
- clean:
- $(MAKE) /f apriori.mak localclean
- cd $(UTILDIR)
- $(MAKE) /f util.mak clean
- cd $(THISDIR)
- localclean:
- -@erase /Q *~ *.obj *.idb *.pch apriori.exe