home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.0 / LINUX-1.0 / LINUX-1 / linux / drivers / net / Makefile < prev    next >
Encoding:
Makefile  |  1994-02-22  |  3.2 KB  |  153 lines

  1. # File: drivers/net/Makefile
  2. #
  3. # Makefile for the Linux network (ethercard) device drivers.
  4. #
  5.  
  6. # This will go away in some future future: hidden configuration files
  7. # are difficult for users to deal with.
  8. include CONFIG
  9.  
  10. NETDRV_OBJS := net.a(Space.o) net.a(auto_irq.o) net.a(net_init.o)
  11. CFLAGS := $(CFLAGS) -I../../net/inet
  12. CPP := $(CPP) -I../../net/inet
  13.  
  14. # The point of the makefile...
  15. all: net.a
  16.  
  17. Space.o: Space.c ../../include/linux/autoconf.h
  18.     $(CC) $(CFLAGS) $(OPTS) $(DL_OPTS) -c $< -o $@
  19.  
  20. net_init.o: ../../include/linux/autoconf.h
  21.  
  22. ifdef CONFIG_WD80x3
  23. NETDRV_OBJS := $(NETDRV_OBJS) net.a(wd.o)
  24. CONFIG_8390 = CONFIG_8390
  25. wd.o:    wd.c CONFIG
  26.     $(CC) $(CPPFLAGS) $(CFLAGS) $(WD_OPTS) -c $<
  27. endif
  28.  
  29. ifdef CONFIG_EL2
  30. NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c503.o)
  31. CONFIG_8390 = CONFIG_8390
  32. 3c503.o:    3c503.c CONFIG
  33.     $(CC) $(CPPFLAGS) $(CFLAGS) $(EL2_OPTS) -c $<
  34. endif
  35.  
  36. ifdef CONFIG_NE2000
  37. NETDRV_OBJS := $(NETDRV_OBJS) net.a(ne.o)
  38. CONFIG_8390 = CONFIG_8390
  39. ne.o:    ne.c CONFIG
  40.     $(CC) $(CPPFLAGS) $(CFLAGS) $(NE_OPTS) -c $<
  41. endif
  42.  
  43. ifdef CONFIG_HPLAN
  44. NETDRV_OBJS := $(NETDRV_OBJS) net.a(hp.o)
  45. CONFIG_8390 = CONFIG_8390
  46. hp.o:    hp.c CONFIG
  47.     $(CC) $(CPPFLAGS) $(CFLAGS) $(HP_OPTS) -c $<
  48. endif
  49.  
  50. ifdef CONFIG_ULTRA
  51. NETDRV_OBJS := $(NETDRV_OBJS) net.a(smc-ultra.o)
  52. CONFIG_8390 = CONFIG_8390
  53. endif
  54.  
  55. ifdef CONFIG_E2100
  56. NETDRV_OBJS := $(NETDRV_OBJS) net.a(e2100.o)
  57. CONFIG_8390 = CONFIG_8390
  58. endif
  59.  
  60. ifdef CONFIG_PLIP
  61. NETDRV_OBJS := $(NETDRV_OBJS) net.a(plip.o)
  62. plip.o:    plip.c CONFIG
  63.     $(CC) $(CPPFLAGS) $(CFLAGS) $(PLIP_OPTS) -c $<
  64. endif
  65.  
  66. ifdef CONFIG_PPP
  67. NETDRV_OBJS := $(NETDRV_OBJS) net.a(ppp.o) net.a(slhc.o)
  68. endif
  69.  
  70. ifdef CONFIG_SLIP
  71. NETDRV_OBJS := $(NETDRV_OBJS) net.a(slip.o) net.a(slhc.o)
  72. slip.o:    slip.c CONFIG
  73.     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  74. endif
  75.  
  76. ifdef CONFIG_DE600
  77. NETDRV_OBJS := $(NETDRV_OBJS) net.a(d_link.o)
  78. d_link.o: d_link.c CONFIG
  79.     $(CC) $(CPPFLAGS) $(CFLAGS) $(DL_OPTS) -c $<
  80. endif
  81.  
  82. ifdef CONFIG_AT1500
  83. NETDRV_OBJS := $(NETDRV_OBJS) net.a(lance.o)
  84. endif
  85. ifdef CONFIG_LANCE
  86. NETDRV_OBJS := $(NETDRV_OBJS) net.a(lance.o)
  87. endif
  88. ifdef CONFIG_AT1700
  89. NETDRV_OBJS := $(NETDRV_OBJS) net.a(at1700.o)
  90. endif
  91. ifdef CONFIG_EL1
  92. NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c501.o)
  93. endif
  94. ifdef CONFIG_EL16
  95. NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c507.o)
  96. endif
  97. ifdef CONFIG_EL3
  98. NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c509.o)
  99. endif
  100. ifdef CONFIG_EEXPRESS
  101. NETDRV_OBJS := $(NETDRV_OBJS) net.a(eexpress.o)
  102. endif
  103. ifdef CONFIG_ZNET
  104. NETDRV_OBJS := $(NETDRV_OBJS) net.a(znet.o)
  105. endif
  106. ifdef CONFIG_DEPCA
  107. NETDRV_OBJS := $(NETDRV_OBJS) net.a(depca.o)
  108. depca.o: depca.c CONFIG
  109.     $(CC) $(CPPFLAGS) $(CFLAGS) $(DEPCA_OPTS) -c $<
  110. endif
  111. ifdef CONFIG_ATP
  112. NETDRV_OBJS := $(NETDRV_OBJS) net.a(atp.o)
  113. endif
  114. ifdef CONFIG_NI52
  115. NETDRV_OBJS := $(NETDRV_OBJS) net.a(ni52.o)
  116. endif
  117. ifdef CONFIG_NI65
  118. NETDRV_OBJS := $(NETDRV_OBJS) net.a(ni65.o)
  119. endif
  120. ifdef CONFIG_ELPLUS
  121. NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c505.o)
  122. endif
  123. ifdef CONFIG_AC3200
  124. NETDRV_OBJS := $(NETDRV_OBJS) net.a(ac3200.o)
  125. CONFIG_8390 = CONFIG_8390
  126. endif
  127.  
  128. ifdef CONFIG_8390
  129. NETDRV_OBJS := $(NETDRV_OBJS) net.a(8390.o)
  130. endif
  131.  
  132. ifdef CONFIG_IP_DEFRAG
  133. NETDRV_OBJS := $(NETDRV_OBJS) net.a(ip-frag.o)
  134. endif
  135.  
  136. net.a: $(NETDRV_OBJS)
  137.     ranlib net.a
  138.  
  139. clean:
  140.     rm -f core *.o *.a *.s
  141.  
  142. dep:
  143.     $(CPP) -M *.c > .depend
  144.  
  145. tar:
  146.  
  147.  
  148. # include a dependency file if one exists
  149.  
  150. ifeq (.depend,$(wildcard .depend))
  151. include .depend
  152. endif
  153.