home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 19 / AACD19.BIN / AACD / Programming / cvs-1.11 / source / src / smakefile < prev   
Encoding:
Makefile  |  2001-02-03  |  5.5 KB  |  199 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for GNU CVS program.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. # Copyright (C) 1986, 1988-1990 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. SHELL = /bin/sh
  17.  
  18. srcdir     = .
  19. top_srcdir = ..
  20.  
  21. prefix = 
  22. exec_prefix = ${prefix}
  23.  
  24. # Where to install the executables.
  25. bindir = ${exec_prefix}/bin
  26.  
  27. # Where to put the system-wide .cvsrc file
  28. libdir = ${exec_prefix}/lib
  29.  
  30. # Where to put the manual pages.
  31. mandir = ${prefix}/man
  32.  
  33. # Use cp if you don't have install.
  34. INSTALL = /bin/install -c
  35. INSTALL_DATA = ${INSTALL} -m 644
  36. INSTALL_PROGRAM = ${INSTALL}
  37.  
  38. LIBS = 
  39.  
  40. SOURCES = add.c admin.c buffer.c checkin.c checkout.c classify.c client.c \
  41. commit.c create_adm.c cvsrc.c diff.c edit.c entries.c error.c expand_path.c \
  42. fileattr.c find_names.c hardlink.c hash.c history.c ignore.c import.c \
  43. lock.c log.c login.c logmsg.c main.c mkmodules.c modules.c myndbm.c no_diff.c \
  44. parseinfo.c patch.c rcs.c rcscmds.c recurse.c release.c remove.c repos.c \
  45. root.c rtag.c scramble.c server.c status.c subr.c filesubr.c run.c \
  46. tag.c update.c watch.c wrapper.c vers_ts.c version.c zlib.c
  47.  
  48. OBJECTS = add.o admin.o buffer.o checkin.o checkout.o classify.o client.o \
  49. commit.o create_adm.o cvsrc.o diff.o edit.o entries.o expand_path.o \
  50. fileattr.o find_names.o hardlink.o hash.o history.o ignore.o import.o \
  51. lock.o log.o login.o logmsg.o main.o mkmodules.o modules.o myndbm.o no_diff.o \
  52. parseinfo.o patch.o rcs.o rcscmds.o recurse.o release.o remove.o repos.o \
  53. root.o rtag.o scramble.o server.o status.o tag.o update.o \
  54. watch.o wrapper.o vers_ts.o \
  55. subr.o filesubr.o run.o version.o error.o zlib.o
  56.  
  57. HEADERS = buffer.h cvs.h rcs.h hardlink.h hash.h myndbm.h \
  58.     update.h server.h client.h error.h fileattr.h edit.h watch.h
  59.  
  60. TAGFILES = $(HEADERS) options.h.in $(SOURCES)
  61.  
  62. DISTFILES = .cvsignore Makefile.in \
  63.         ChangeLog ChangeLog-97 ChangeLog-96 ChangeLog-9395 ChangeLog-9194 \
  64.             sanity.sh cvsbug.sh $(TAGFILES) build_src.com
  65.  
  66. PROGS = cvs cvsbug
  67.  
  68. DEFS = define=HAVE_CONFIG_H 
  69.  
  70. CC     = sc
  71. CFLAGS = debug=line cpu=any code=far commentnest structureequivalence stringmerge nostackcheck \
  72.          optimize opttime optschedule
  73. CPPFLAGS =
  74. LDFLAGS = 
  75.  
  76. INCLUDES = idir="" idir="/" idir="/lib" idir="/amiga/include" idir="/amiga" idir="/amiga/netinclude"
  77. .c.o:
  78.     $(CC) $(CPPFLAGS) $(INCLUDES) $(DEFS) $(CFLAGS) $<
  79.  
  80. all: Makefile $(PROGS)
  81. .PHONY: all
  82.  
  83. saber_cvs:
  84.     @cd ..; $(MAKE) saber SUBDIRS=src
  85.  
  86. lint:
  87.     @cd ..; $(MAKE) lint SUBDIRS=src
  88.  
  89. install: installdirs
  90.     @for prog in $(PROGS); do \
  91.       echo Installing $$prog in $(bindir); \
  92.       $(INSTALL) $$prog $(bindir)/$$prog ; \
  93.     done
  94.  
  95. installdirs:
  96.     $(SHELL) $(top_srcdir)/mkinstalldirs $(bindir)
  97.  
  98. .PHONY: install installdirs
  99.  
  100. installcheck:
  101.     $(SHELL) $(srcdir)/sanity.sh $(bindir)/cvs
  102. .PHONY: installcheck
  103.  
  104. check: all
  105.     $(SHELL) $(srcdir)/sanity.sh `pwd`/cvs
  106. .PHONY: check
  107.  
  108. # I'm not sure there is any remaining reason for this to be separate from
  109. # `make check'.
  110. remotecheck: all
  111.     $(SHELL) $(srcdir)/sanity.sh -r `pwd`/cvs
  112. .PHONY: remotecheck
  113.  
  114. tags: $(TAGFILES)
  115.     ctags $(TAGFILES)
  116.  
  117. TAGS: $(TAGFILES)
  118.     etags `for i in $(TAGFILES); do echo $(srcdir)/$$i; done`
  119.  
  120. ls:
  121.     @echo $(DISTFILES)
  122. .PHONY: ls
  123.  
  124. clean:
  125.     rm -f $(PROGS) *.o core check.log check.plog
  126. .PHONY: clean
  127.  
  128. distclean: clean
  129.     rm -f tags TAGS Makefile options.h
  130. .PHONY: distclean
  131.  
  132. realclean: distclean
  133. .PHONY: realclean
  134.  
  135. dist-dir:
  136.     mkdir ${DISTDIR}
  137.     for i in ${DISTFILES}; do \
  138.       ln $(srcdir)/$${i} ${DISTDIR}; \
  139.     done
  140. .PHONY: dist-dir
  141.  
  142. # Linking rules.
  143.  
  144. #$(PROGS): ../lib/libcvs.a ../zlib/libz.a ../diff/libdiff.a
  145.  
  146. cvs: $(OBJECTS) /amiga/amiga.lib /lib/cvs.lib /zlib/z.lib /diff/diff.lib
  147.     slink lib:cres.o $(OBJECTS) to $@.debug lib /amiga/amiga.lib lib:sc.lib lib:debug.lib lib:small.lib \
  148.         /lib/cvs.lib /zlib/z.lib /diff/diff.lib addsym batch smalldata smallcode \
  149.         map $@.map,fhx fwidth 32 pwidth 32 swidth 32
  150.     slink $@.debug to $@ nodebug noicons
  151.     protect $@ +p
  152.  
  153. xlint: $(SOURCES)
  154.     files= ; \
  155.     for i in $(SOURCES) ; do \
  156.       files="$$files $(srcdir)/$$i" ; \
  157.     done ; \
  158.     sh -c "lint $(DEFS) $(INCLUDES) $$files | grep -v \"possible pointer alignment problem\" \
  159.     | grep -v \"argument closure unused\""
  160.  
  161. saber: $(SOURCES)
  162.     # load $(CFLAGS) $(SOURCES)
  163.     # load ../lib/libcvs.a $(LIBS)
  164.  
  165. cvsbug: cvsbug.sh $(srcdir)/version.c
  166.     echo > .fname \
  167.       cvs-`sed < $(srcdir)/version.c \
  168.             -e '/version_string/!d' \
  169.             -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
  170.             -e q`
  171.     sed -e 's,xLIBDIRx,$(libdir)/cvs,g' \
  172.         -e "s,xVERSIONx,`cat .fname`,g" $(srcdir)/$@.sh > $@-t
  173.     rm -f .fname
  174.     mv $@-t $@
  175.     chmod a+x $@
  176.  
  177. # Compilation rules.
  178.  
  179. $(OBJECTS): $(HEADERS) options.h
  180.  
  181. rcscmds.o: rcscmds.c /diff/diffrun.h
  182.     $(CC) $(CPPFLAGS) $(INCLUDES) idir="/diff" $(DEFS) $(CFLAGS) rcscmds.c
  183.  
  184. zlib.o: zlib.c /zlib/zlib.h
  185.     $(CC) $(CPPFLAGS) $(INCLUDES) idir="/zlib" $(DEFS) $(CFLAGS) zlib.c
  186.  
  187. subdir = src
  188. #Makefile: ../config.status Makefile.in
  189. #    cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  190.  
  191. #options.h: ../config.status options.h.in
  192. #    cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  193.  
  194. #../config.status: ../configure
  195. #    cd .. ; $(SHELL) config.status --recheck
  196.  
  197. #../configure: ../configure.in
  198. #    cd $(top_srcdir) ; autoconf
  199.