home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / cpio-2.3-src.lha / src / amiga / cpio-2.3 / makefile.os2 < prev    next >
Makefile  |  1992-08-22  |  2KB  |  63 lines

  1. # OS/2 makefile for GNU cpio.
  2. # Copyright (C) 1991, 1992 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. # no more optimizations for MS C 6.00 than -Olt
  19. # otherwise it produces bad code!
  20.  
  21. DEFS = -D__MSDOS__ -DSTDC_HEADERS -DHAVE_VPRINTF -DHAVE_STRERROR -DNO_REMOTE
  22.  
  23. # use this for MS C 6.00 (16-bit)
  24. #CC = cl -nologo -AS -Ot
  25. #CFLAGS = -Za -I. $(DEFS)
  26. #LDFLAGS = -Lp -Fb -F 4000 -link /noe
  27. #LIBS = d:\ms\lib\setargv.obj
  28. #DEF = cpio.def
  29. #O = .obj
  30.  
  31. # and this for emx/gcc (32-bit)
  32. CC = gcc -O
  33. CFLAGS = -ansi -I. $(DEFS)
  34. LDFLAGS = -s
  35. LIBS = 
  36. DEF =
  37. O = .o
  38.  
  39. OBJS = copyin$(O) copyout$(O) copypass$(O) dstring$(O) fnmatch$(O) \
  40. global$(O) main$(O) tar$(O) util$(O) error$(O) getopt$(O) getopt1$(O) \
  41. filemode$(O) version$(O) xmalloc$(O) xstrdup$(O) makepath$(O) bcopy$(O) \
  42. dirname$(O) stripslash$(O) # tcexparg$(O)
  43.  
  44. all:    cpio.exe
  45.  
  46. cpio.exe:    $(OBJS) $(DEF)
  47.     $(CC) -o $@ $(DEF) $(OBJS) $(LIBS) $(LDFLAGS)
  48.  
  49. .c$(O):
  50.     $(CC) -c $(CFLAGS) $<
  51.  
  52. copyin$(O): cpio.h cpiohdr.h dstring.h extern.h filetypes.h fnmatch.h rmt.h system.h
  53. copyout$(O): cpio.h cpiohdr.h dstring.h extern.h filetypes.h rmt.h system.h
  54. copypass$(O): cpio.h cpiohdr.h dstring.h extern.h filetypes.h system.h
  55. dstring$(O): dstring.h
  56. global$(O): cpio.h cpiohdr.h dstring.h extern.h system.h
  57. main$(O): cpio.h cpiohdr.h dstring.h extern.h filetypes.h rmt.h
  58. tar$(O): filetypes.h cpio.h cpiohdr.h dstring.h extern.h rmt.h tar.h tarhdr.h system.h
  59. util$(O): extern.h rmt.h system.h
  60.  
  61. clean:
  62.     rm cpio.exe *$(O)
  63.