home *** CD-ROM | disk | FTP | other *** search
/ Internet Publisher's Toolbox 1.0 / Image.iso / toolbox / ntserver / wtsource / makefile < prev    next >
Encoding:
Makefile  |  1994-11-29  |  1.3 KB  |  57 lines

  1. # Makefile for the WAISLOOK program
  2.  
  3. #NODEBUG = 1
  4.  
  5. !include <ntwin32.mak>
  6.  
  7. !IFDEF ddebug
  8. !ELSE
  9. !IFDEF NODEBUG
  10. ddebug =
  11. !ELSE
  12. ddebug = -DDEBUG
  13. !ENDIF
  14. !ENDIF
  15.  
  16. # Location of libraries
  17. LIBDIR = ..\bin
  18.  
  19. # Location of backup directory
  20. !IFNDEF BACKDIR
  21. BACKDIR = g:\infeng\freewais
  22. !ENDIF
  23.  
  24. # Libraries themselves
  25. PROTOCOL_LIB = $(LIBDIR)\wais-$(CPU).lib
  26. INV_LIB = $(LIBDIR)\inv-$(CPU).lib
  27.  
  28. # We don't use inference rules for compiling, because of the need to
  29. # have .obj files with different names from their .c sources.  This
  30. # macro makes it easier to specify the compilation command. 
  31.  
  32. ccompile = $(cc) $(cdebug) $(cflags) $(cvarsmt) $(ddebug) -Fo$@ -I..\ir
  33.  
  34. # Main targets
  35.  
  36. default: $(LIBDIR)\waislook-$(CPU).exe
  37.  
  38. backup:
  39.     copy *.c $(BACKDIR)\waislook
  40.     copy *.h $(BACKDIR)\waislook
  41.     copy Makefile $(BACKDIR)\waislook
  42.  
  43. clean:
  44.     del *.obj *.bak *.map
  45.  
  46. # Intermediate targets
  47.  
  48. waislook-$(CPU).obj: waislook.c waisgn.h ..\ir\version.h
  49.     $(ccompile) waislook.c
  50.  
  51. gotypr-$(CPU).obj: gotype.c
  52.     $(ccompile) gotype.c
  53.  
  54. $(LIBDIR)\waislook-$(CPU).exe: gotypr-$(CPU).obj waislook-$(CPU).obj $(PROTOCOL_LIB) $(INV_LIB)
  55.     $(link) $(linkdebug) $(conflags) -force -map:$*.map -out:$*.exe $** $(conlibsmt) wsock32.lib advapi32.lib
  56.  
  57.