home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / tags18.zip / MAKEFILE < prev    next >
Text File  |  1992-05-04  |  2KB  |  85 lines

  1. #
  2. #
  3. # Makefile for tags.exe
  4. #
  5. # Created 03-28-91 JBK
  6. # Last Modified Sun, 03/29/1992  11:14:04
  7. #
  8.  
  9. #
  10. # The tags executable purposely does not link with the wild card expansion
  11. # startup code included in MSC.  If you try to use this for tags then the
  12. # sh style wild card expansions built into the executable will not function
  13. # quite as expected.  The sort executable, however, does want setargv.obj
  14. # to be linked in
  15. #
  16. SETARGV = c:\language\c700\lib\setargv.obj
  17.  
  18. #
  19. # C700 has created a library with the old non-ansi names in it.
  20. #    uncomment for C700 compile
  21. OLDNAMES = c:\language\c700\lib\oldnames.lib
  22.  
  23. #
  24. # This is flags for optimized versions
  25. FLAGS = /AL /G2 /Gy /Ocegilptz /Oa /Ob2 /Gs /Gr
  26. LFLAGS = /E /F /PACKC /EXEPACK /NOI /ST:0xc000
  27.  
  28.  
  29. #
  30. # This is FLAGS for debugging versions
  31. #FLAGS = /AL /Od /Zi /qc
  32. #LFLAGS = /CO /M /NOI /ST:0xc000
  33.  
  34.  
  35. #
  36. #  MSC CC
  37.  
  38. CC = cl $(FLAGS)
  39. LINK = link $(LFLAGS)
  40.  
  41.  
  42. SORT_DEFINES = -DSORT_MODULE -DSTDC_HEADERS -DUSG -D__STDC__
  43.  
  44. OBJS = arglist.obj asmtag.obj ctag.obj match.obj flags.obj log.obj \
  45.        shell.obj sortmod.obj tagio.obj validcrc.obj wildfile.obj
  46.  
  47. .c.obj:
  48.     $(CC) /W4 -c $<
  49.  
  50. all: tags.exe sort.exe
  51.  
  52. tags.exe: $(OBJS)
  53.     $(LINK) $** $(OLDNAMES), $@;
  54.     CRCSET $@
  55.  
  56. sort.exe: sort.c sort.h std.h
  57.     $(CC) /W2 -F 8000 sort.c $(SETARGV) /link /NOE
  58.  
  59. shell.obj: flags.h log.h sort.h wildfile.h viruscrc.h \
  60.            tagio.h ctag.h asmtag.h arglist.h flags.h
  61.  
  62. wildfile.obj: wildfile.h match.h
  63.  
  64. match.obj: match.h
  65.     $(CC) /DFILE_MATCH /c $(FLAGS) match.c
  66.  
  67. tagio.obj: arglist.h tagio.h log.h flags.h
  68.  
  69. log.obj: log.h
  70.  
  71. ctag.obj: ctag.h flags.h log.h tagio.h
  72.  
  73. asmtag.obj: asmtag.h flags.h tagio.h
  74.  
  75. sortmod.obj: sort.c sort.h std.h
  76.     $(CC) \W2 -c -Fosortmod.obj $(SORT_DEFINES) sort.c
  77.  
  78. arglist.obj: arglist.h log.h
  79.  
  80. flags.obj: flags.h log.h
  81.  
  82. validcrc.obj: viruscrc.h
  83.  
  84.  
  85.