home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / utilities / cli / pgp2 / src / Makefile next >
Encoding:
Makefile  |  1995-06-08  |  1.8 KB  |  64 lines

  1. # makefile for pgp 2.6.2i under RISC OS
  2. # cc command line becomes too long unless we do clever things,
  3. # or more precisely unless we do stupid things.
  4. # The particular stupid thing we do is to build many of the object files
  5. # into a library.
  6. # NB If you don't have libfile, I have a replacement with similar
  7. # functionality. (But it's much slower and uses different syntax...)
  8. #
  9. # If you are a new PGP user you should copy config/txt to LIBDIR.
  10. # I put this in "make install" but removed it after realising that
  11. # it's stupid to wipe over your existing config file with the default
  12. # one. I realised this the hard way >>duhh<<.
  13.  
  14. # Where do you want PGP?
  15. BINDIR    = $.bin2
  16.  
  17. # Where do you want its library files? (Directory should exist)
  18. LIBDIR    = $.lib.pgp
  19.  
  20. CC = cc
  21. AS = as
  22.  
  23. CFLAGS = -DIDEA32 -DNOTERMIO -DRISC_OS -DASM_MD5
  24.  
  25. .SUFFIXES: .o .s .c
  26.  
  27. LOBS =    o.armor o.charset o.getopt o.keyadd o.keymaint o.keymgmt\
  28.     o.language o.more o.passwd o.rsagen o.rsaglue1\
  29.     o.zbits o.zdeflate o.zfile_io o.zglobals o.zinflate\
  30.     o.zip o.zipup o.ztrees o.zunzip
  31.  
  32. OBJS =    o.config o.crypto o.fileio o.genprime o.idea o.md5 o.mdfile\
  33.     o.mpiio o.mpilib o.noise o.pgp o.random o.randpool o.sleep
  34.  
  35. XOBS =    o.arm o.ideaARM o.gjmlow o.md5ARM
  36.  
  37. .c.o:; $(CC) $(CFLAGS) -c $<
  38. .s.o:; $(AS) $<
  39.  
  40. pgp: o._lib $(OBJS) $(XOBS)
  41.   $(CC) -o pgp $(OBJS) $(XOBS) o._lib
  42.  
  43. o.fileio: c.fileio
  44.   $(CC) $(CFLAGS) -DLIBDIR="\"$(LIBDIR)\"" -c c.fileio
  45.  
  46. o._lib: $(LOBS)
  47.   libfile -c o._lib $(LOBS)
  48.  
  49. install:
  50.   squeeze -v pgp
  51.   copy pgp $(BINDIR).pgp F~C
  52.   #copy ^.config/txt $(LIBDIR).config/txt F~C ... not actually a good idea
  53.   copy ^.lang/txt $(LIBDIR).lang/txt F~C
  54.   copy ^.pgp/hlp $(LIBDIR).pgp/hlp F~C
  55.   copy ^.en/hlp $(LIBDIR).en/hlp F~C
  56.   copy ^.es/hlp $(LIBDIR).es/hlp F~C
  57.   copy ^.fr/hlp $(LIBDIR).fr/hlp F~C
  58.   copy ^.no/hlp $(LIBDIR).no/hlp F~C
  59.   copy ^.doc $(LIBDIR).doc RF~C
  60.  
  61. clean:
  62.   remove pgp
  63.   wipe o.* ~C
  64.