home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / unix / unixports / tarsrc / tar1112 / Makefile
Makefile  |  1994-02-11  |  2KB  |  63 lines

  1. # Makefile for GNU tar on the Acorn Archimedes.
  2. # Copyright (C) 1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. CC = %gcc
  19. RM = rm -f
  20.  
  21. # defines.h gets included before anything else, by cpp.
  22. # The command line is too long if it's done with -D...
  23. DEFS = -DARCH -include defines.h
  24.  
  25. CFLAGS = $(DEFS) -IUnix:
  26. LDFLAGS = 
  27.  
  28. LIBS = -LUnix: -lregex -lgetopt -lgetopt1
  29. # Uncomment the following if you don't have the libraries above.
  30. OBJ3 =    #o.getopt o.getopt1 o.regex o.alloca
  31.  
  32. OBJ1 =    o.tar o.create o.extract o.buffer o.getoldopt o.update o.gnu o.mangle
  33. OBJ2 =    o.version o.list o.names o.diffarch o.port o.fnmatch o.getdate
  34.  
  35. # Needed to fix a bug in UnixLib 3.6c. See also defines.h
  36. FIX  =    o.dirent
  37.  
  38. OBJS =    $(OBJ1) $(OBJ2) $(FIX) $(OBJ3)
  39.  
  40. all:    tar
  41.  
  42. tar:    h.testpad c.getdate $(OBJS)
  43.     $(RM) o.testpad
  44.     $(CC) $(LDFLAGS) -o tar o.* $(LIBS)
  45.  
  46. h.testpad: testpad
  47.     testpad
  48.  
  49. testpad: c.testpad
  50.     $(CC) $(LDFLAGS) -o testpad testpad.c $(LIBS)
  51.  
  52. o.dirent:    c.dirent
  53.     $(CC) -IUnix: -c $^ -o $@
  54.  
  55. clean:
  56.     $(RM) o.* tar testpad h.testpad
  57.  
  58. mostlyclean: clean
  59.  
  60. distclean: clean
  61.  
  62. realclean: clean
  63.