home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / wget153.zip / os2 / Makefile < prev    next >
Makefile  |  1998-09-22  |  5KB  |  160 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for `wget' utility
  3. # Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #
  20. # Version: 1.5.3
  21. #
  22.  
  23. SHELL = /bin/sh
  24.  
  25. top_srcdir = ../
  26. srcdir     = .
  27. ANSI2KNR = 
  28. o = .o
  29.  
  30. prefix       = c:/tcpip
  31. exec_prefix  = ${prefix}
  32. bindir       = ${exec_prefix}/bin
  33. sysconfdir   = ${prefix}/etc
  34. localedir    = $(prefix)/share/locale
  35.  
  36. CC       = gcc
  37. CPPFLAGS = 
  38. # The following line is losing on some versions of make!
  39. DEFS     = -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"$(sysconfdir)/.wgetrc\" -DLOCALEDIR=\"$(localedir)\"
  40. # -DENV2
  41. CFLAGS   =  -O2 -Wall -Wno-implicit
  42. LDFLAGS  = -Zexe -Zcrtdll
  43. LIBS     = -lsocket 
  44. exeext   = 
  45.  
  46. INCLUDES = -I. -I$(srcdir)
  47.  
  48. COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
  49. LINK    = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
  50. INSTALL = .././install-sh -c
  51. INSTALL_PROGRAM = ${INSTALL}
  52. RM = rm -f
  53. ETAGS = etags
  54.  
  55. # Conditional compiles
  56. ALLOCA = 
  57. MD5_OBJ = md5$o
  58. OPIE_OBJ = ftp-opie$o
  59.  
  60. OBJ = $(ALLOCA) cmpt$o connect$o fnmatch$o ftp$o ftp-basic$o  \
  61.       ftp-ls$o $(OPIE_OBJ) getopt$o headers$o host$o html$o   \
  62.       http$o init$o log$o main$o $(MD5_OBJ) netrc$o rbuf$o    \
  63.       recur$o retr$o url$o utils$o version$o os2$o
  64.  
  65. .SUFFIXES:
  66. .SUFFIXES: .c .o ._c ._o
  67.  
  68. .c.o:
  69.     $(COMPILE) -c $<
  70.  
  71. .c._c: $(ANSI2KNR)
  72.     $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
  73.  
  74. ._c._o:
  75.     @echo $(COMPILE) -c $<
  76.     @rm -f _$*.c
  77.     @ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
  78.  
  79. .c._o: $(ANSI2KNR)
  80.     $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
  81.     @echo $(COMPILE) -c $*._c
  82.     @rm -f _$*.c
  83.     @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
  84.  
  85. # Dependencies for building
  86.  
  87. wget$(exeext): $(OBJ)
  88.     $(LINK) $(OBJ) $(LIBS)
  89.  
  90. ansi2knr: ansi2knr.o
  91.     $(CC) -o ansi2knr ansi2knr.o $(LIBS)
  92.  
  93. $(OBJ): $(ANSI2KNR)
  94.  
  95. #
  96. # Dependencies for installing
  97. #
  98.  
  99. install: install.bin
  100.  
  101. uninstall: uninstall.bin
  102.  
  103. install.bin: wget$(exeext)
  104.     $(top_srcdir)/mkinstalldirs $(bindir)
  105.     $(INSTALL_PROGRAM) wget$(exeext) $(bindir)/wget$(exeext)
  106.  
  107. uninstall.bin:
  108.     $(RM) $(bindir)/wget$(exeext)
  109.  
  110. #
  111. # Dependencies for cleanup
  112. #
  113.  
  114. clean:
  115.     $(RM) *.o wget$(exeext) *~ *.bak core $(ANSI2KNR) *._o *._c
  116.  
  117. distclean: clean
  118.     $(RM) Makefile config.h
  119.  
  120. realclean: distclean
  121.     $(RM) TAGS
  122.  
  123. #
  124. # Dependencies for maintenance
  125. #
  126.  
  127. subdir = src
  128.  
  129. Makefile: Makefile.in ../config.status
  130.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  131.  
  132. TAGS: *.c *.h
  133.     -$(ETAGS) *.c *.h
  134.  
  135. # DO NOT DELETE THIS LINE -- make depend depends on it.
  136.  
  137. cmpt$o: config.h wget.h sysdep.h options.h
  138. connect$o: config.h wget.h sysdep.h options.h connect.h host.h
  139. fnmatch$o: config.h wget.h sysdep.h options.h fnmatch.h
  140. ftp-basic$o: config.h wget.h sysdep.h options.h utils.h rbuf.h connect.h host.h
  141. ftp-ls$o: config.h wget.h sysdep.h options.h utils.h ftp.h rbuf.h
  142. ftp-opie$o: config.h wget.h sysdep.h options.h md5.h
  143. ftp$o: config.h wget.h sysdep.h options.h utils.h url.h rbuf.h retr.h ftp.h html.h connect.h host.h fnmatch.h netrc.h
  144. getopt$o: wget.h sysdep.h options.h
  145. headers$o: config.h wget.h sysdep.h options.h connect.h rbuf.h headers.h
  146. host$o: config.h wget.h sysdep.h options.h utils.h host.h url.h
  147. html$o: config.h wget.h sysdep.h options.h url.h utils.h ftp.h rbuf.h html.h
  148. http$o: config.h wget.h sysdep.h options.h utils.h url.h host.h rbuf.h retr.h headers.h connect.h fnmatch.h netrc.h
  149. init$o: config.h wget.h sysdep.h options.h utils.h init.h host.h recur.h netrc.h
  150. log$o: config.h wget.h sysdep.h options.h utils.h
  151. main$o: config.h wget.h sysdep.h options.h utils.h getopt.h init.h retr.h rbuf.h recur.h host.h
  152. md5$o: wget.h sysdep.h options.h md5.h
  153. mswindows$o: config.h winsock.h wget.h sysdep.h options.h url.h
  154. netrc$o: wget.h sysdep.h options.h utils.h netrc.h init.h
  155. rbuf$o: config.h wget.h sysdep.h options.h rbuf.h connect.h
  156. recur$o: config.h wget.h sysdep.h options.h url.h recur.h utils.h retr.h rbuf.h ftp.h fnmatch.h host.h
  157. retr$o: config.h wget.h sysdep.h options.h utils.h retr.h rbuf.h url.h recur.h ftp.h host.h connect.h
  158. url$o: config.h wget.h sysdep.h options.h utils.h url.h host.h html.h
  159. utils$o: config.h wget.h sysdep.h options.h utils.h fnmatch.h
  160.