home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / shar349.zip / src / makefile < prev    next >
Makefile  |  1992-02-22  |  1KB  |  72 lines

  1. # makefile. - shar for MS-DOS
  2. # Copyright (C) 1990 by Thorsten Ohl, ohl@gnu.ai.mit.edu
  3. #
  4. # $Header: e:/gnu/shar/RCS/makefile 3.49.0.2 90/09/25 22:03:16 tho Exp $
  5.  
  6. BINDIR    = c:/bin
  7. VPATH    = d:/usr/lib;d:/usr/include
  8.  
  9. VERSION    = 3.49
  10. INSTALL = cp -v
  11. DISK    = b
  12. ZIPFILE = shar
  13.  
  14. # Can also use -DUSE_EMS
  15. SWAPOPT    = -DUSE_XMS
  16.  
  17. MODEL    = S
  18. CFLAGS    = -Ox -A$(MODEL) -W4 -Za -DSMART_SHELL -DUSE_GNU_GETOPT
  19. LDFLAGS    = /e/st:0x4000/noe setargv
  20.  
  21. # We'd better use the swaplib, since Microsoft's spawn () clobbers
  22. # some binary files ...
  23. LOADLIBES = gnulib_$(MODEL) swaplib$(MODEL)
  24.  
  25. CMDS    = shar.exe unshar.exe
  26. SRCS    = uushar.c unshar.c shar.c
  27. DOSSRCS    = pipes.c
  28.  
  29. RCSFILES= $(SRCS) $(DOSSRCS) makefile
  30. MISC    = make.inc docs/readme docs/shar.1 docs/unshar.1 RCS/who@where.c
  31.  
  32. .PHONY: all
  33. all: $(CMDS)
  34.  
  35. .PHONY: install
  36. install: $(CMDS)
  37.     $(INSTALL) $(CMDS) $(BINDIR)
  38.  
  39. shar.exe: uushar.obj
  40. shar.exe unshar.exe: pipes.obj swap.obj _cwild.obj
  41.  
  42. swap.obj: swap.c
  43.     $(CC) -Od -A$(MODEL) -W4 -DSMART_SHELL $(SWAPOPT) -c $<
  44.  
  45. tags: $(SRCS)
  46.     etags $^
  47.  
  48. .PHONY: clean veryclean
  49. clean:
  50.     rm -f *.obj *.tar patches
  51.  
  52. veryclean:
  53.     rm -f *.exe errs tags *.shar
  54.     rcsclean *.c makefile
  55.  
  56. include make.inc
  57.  
  58. .PHONY: dist shar
  59. dist: shar tar
  60.  
  61. tar: shar.tar
  62. shar: shar.01
  63.  
  64. shar.tar: makefile make.inc patches $(DOSSRCS) $(CMDS)
  65.  
  66. shar.01: makefile make.inc patches $(DOSSRCS) $(CMDS)
  67.     shar -Cb16 -m -anshar -L64 -o$(basename $@) $^
  68.  
  69. patches: $(SRCS)
  70.     rcsdiff -c -r$(VERSION) $^ > $@
  71.  
  72.