home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / disk / archive / nspark_1 / nspark-1.7.5 / riscos / Makefile next >
Makefile  |  1994-12-13  |  2KB  |  98 lines

  1. #
  2. # nspark makefile (Acorn)
  3. #
  4. # $Header: makefile 1.30 92/12/23 $
  5. #
  6. # SYSTYPE:    RISCOS2, RISCOS3
  7. #
  8. SYSTYPE= RISCOS2
  9. INSTALLDIR= $${HOME}/bin
  10. CC = cc
  11.  
  12. # Under System V change "install" to "cp"
  13. INSTALL = install -s
  14.  
  15. # --- You shouldn't need to edit below this line ---
  16.  
  17. VERSION = 1.7.4
  18. MAINTAINER = arb@comp.lancs.ac.uk
  19. BACKUPFILE = $${HOME}/tmp/nspark.zip
  20.  
  21. CDEFINES = -I. -O
  22. CMISC = -DVERSION="\"$(VERSION)\"" -DMAINTAINER="\"$(MAINTAINER)\"" -D$(SYSTYPE)
  23. CFLAGS = $(CDEFINES) $(CMISC) -throwback
  24. PROG = nspark
  25. SRCS = main.c arc.c unarc.c store.c pack.c compress.c crc.c \
  26.     io.c error.c misc.c date.c acorn.c arcfs.c
  27. HDRS = main.h arc.h unarc.h store.h pack.h compress.h crc.h \
  28.     io.h error.h misc.h date.h os.h spark.h arcfs.h
  29. OBJS = main.o arc.o unarc.o store.o pack.o compress.o crc.o \
  30.     io.o error.o misc.o date.o acorn.o arcfs.o
  31. LIBS =
  32.  
  33. .DEFAULT:
  34.     co -S $<
  35.  
  36. all:    $(PROG)
  37.  
  38. $(PROG): $(OBJS)
  39.     $(CC) -o $(PROG) $(OBJS) $(LIBS)
  40.  
  41. install: $(PROG)
  42.      $(INSTALL) $(PROG) $(INSTALLDIR)
  43.  
  44. depend: $(SRCS) $(HDRS)
  45.     makedepend -w200 $(CDEFINES) -D$(SYSTYPE)  -- $(SRCS)
  46.     mv makefile makefile.old
  47.     sed -f nosysdep.sed < makefile.old > makefile
  48.     rm -f makefile.old makefile.bak
  49.  
  50. tags:    $(SRCS) $(HDRS)
  51.     ctags $(SRCS) $(HDRS)
  52.  
  53. clean:
  54.     rm -f $(PROG) $(OBJS) mkendian endian.h
  55.     rm -f a.out core *~
  56.  
  57. backup:    clean
  58.     (cd ..; zip -r9y $(BACKUPFILE) nspark)
  59.  
  60. TMPDIR = $$HOME/tmp
  61. DISTLEAF = nspark-$(VERSION)
  62. DISTDIR = $(TMPDIR)/$(DISTLEAF)
  63. dist:    clean $(SRCS) $(HDRS)
  64.     rm -f RCS/rel-$(VERSION)
  65.     makerel makefile *.c *.h > RCS/rel-$(VERSION)
  66.     chmod 444 RCS/rel-$(VERSION)
  67.     mkdir $(DISTDIR)
  68.     cp *.c *.h nosysdep.sed README BUGS CHANGES makefile $(DISTDIR)
  69.     mkdir $(DISTDIR)/mkfiles
  70.     cp mkfiles/* $(DISTDIR)/mkfiles
  71.     (cd $(TMPDIR); tar cf - $(DISTLEAF) | compress > $(DISTLEAF).tar.Z)
  72.     (cd $(TMPDIR); rm -rf $(DISTLEAF))
  73.  
  74. io.o:    endian.h
  75.  
  76. endian.h:    mkendian
  77.     mkendian > h.endian
  78.  
  79. mkendian:    mkendian.c
  80.     $(CC) -o mkendian mkendian.c
  81.  
  82. .c.o:
  83.     $(CC) $(CFLAGS) -c $*.c
  84.  
  85. # DO NOT DELETE THIS LINE -- make depend depends on it.
  86.  
  87. main.o: spark.h io.h cproto.h error.h misc.h arc.h unarc.h
  88. arc.o: spark.h error.h cproto.h 
  89. unarc.o: spark.h store.h cproto.h pack.h compress.h main.h io.h misc.h os.h error.h crc.h
  90. store.o: spark.h main.h crc.h cproto.h io.h
  91. pack.o: spark.h main.h crc.h cproto.h io.h
  92. compress.o: spark.h pack.h cproto.h main.h crc.h io.h
  93. crc.o: spark.h main.h
  94. io.o: spark.h main.h error.h cproto.h arcfs.h
  95. error.o: error.h cproto.h 
  96. misc.o: spark.h cproto.h main.h date.h misc.h
  97. date.o: spark.h
  98.