util.mak
上传用户:lengbin
上传日期:2010-03-31
资源大小:121k
文件大小:3k
- #-----------------------------------------------------------------------
- # File : util.mak
- # Contents: build utility modules
- # Author : Christian Borgelt
- # History : 26.01.2003 file created
- # 05.06.2003 module params added
- # 12.08.2003 module nstats added
- #-----------------------------------------------------------------------
- CC = cl.exe
- LD = link.exe
- DEFS = /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS"
- CFLAGS = /nologo /ML /W3 /GX /O2 $(DEFS) /YX /FD /c
- #-----------------------------------------------------------------------
- # Build Modules
- #-----------------------------------------------------------------------
- all: memsys.obj vecops.obj listops.obj symtab.obj nimap.obj
- tfscan.obj scform.obj scan.obj parse.obj params.obj
- #-----------------------------------------------------------------------
- # Memory Management
- #-----------------------------------------------------------------------
- memsys.obj: memsys.h memsys.c util.mak
- $(CC) $(CFLAGS) memsys.c /Fo$@
- #-----------------------------------------------------------------------
- # Vector Operations
- #-----------------------------------------------------------------------
- vecops.obj: vecops.h vecops.c util.mak
- $(CC) $(CFLAGS) vecops.c /Fo$@
- #-----------------------------------------------------------------------
- # List Operations
- #-----------------------------------------------------------------------
- listops.obj: listops.h listops.c util.mak
- $(CC) $(CFLAGS) listops.c /Fo$@
- #-----------------------------------------------------------------------
- # Numerical Statistics
- #-----------------------------------------------------------------------
- nstats.obj: nstats.h nstats.c util.mak
- $(CC) $(CFLAGS) nstats.c /Fo$@
- nst_pars.obj: nstats.h nstats.c util.mak
- $(CC) $(CFLAGS) /D "NST_PARSE" nstats.c /Fo$@
- #-----------------------------------------------------------------------
- # Symbol Table Management
- #-----------------------------------------------------------------------
- symtab.obj: symtab.h symtab.c util.mak
- $(CC) $(CFLAGS) symtab.c /Fo$@
- nimap.obj: symtab.h vecops.h symtab.c util.mak
- $(CC) $(CFLAGS) /D "NIMAPFN" symtab.c /Fo$@
- #-----------------------------------------------------------------------
- # Table File Scanner Management
- #-----------------------------------------------------------------------
- tfscan.obj: tfscan.h tfscan.c util.mak
- $(CC) $(CFLAGS) tfscan.c /Fo$@
- #-----------------------------------------------------------------------
- # Scanner
- #-----------------------------------------------------------------------
- scform.obj: scan.h scan.c util.mak
- $(CC) $(CFLAGS) scan.c /Fo$@
- scan.obj: scan.h scan.c util.mak
- $(CC) $(CFLAGS) /D SC_SCAN scan.c /Fo$@
- #-----------------------------------------------------------------------
- # Parser Utilities
- #-----------------------------------------------------------------------
- parse.obj: parse.h
- parse.obj: parse.c makefile
- $(CC) $(CFLAGS) -c parse.c -o $@
- #-----------------------------------------------------------------------
- # Command Line Parameter Retrieval
- #-----------------------------------------------------------------------
- params.obj: params.h
- params.obj: params.c makefile
- $(CC) $(CFLAGS) -c params.c -o $@
- #-----------------------------------------------------------------------
- # Clean up
- #-----------------------------------------------------------------------
- clean:
- -@erase /Q *~ *.obj *.idb *.pch