Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #
  2. # (C) Copyright 2003
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # See file CREDITS for list of people who contributed to this
  6. # project.
  7. #
  8. # This program is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU General Public License as
  10. # published by the Free Software Foundation; either version 2 of
  11. # the License, or (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. # MA 02111-1307 USA
  22. #
  23. # File: drivers/sk98lin/Makefile
  24. #
  25. # Makefile for the SysKonnect SK-98xx device driver.
  26. #
  27. include $(TOPDIR)/config.mk
  28. LIB := libsk98lin.a
  29. OBJS := skge.o skaddr.o skgehwt.o skgeinit.o skgepnmi.o skgesirq.o \
  30. ski2c.o sklm80.o skqueue.o skrlmt.o sktimer.o skvpd.o \
  31. skxmac2.o skcsum.o #skproc.o
  32. OBJS += uboot_skb.o uboot_drv.o
  33. # DBGDEF = \
  34. # -DDEBUG
  35. ifdef DEBUG
  36. DBGDEF += \
  37. -DSK_DEBUG_CHKMOD=0x00000000L \
  38. -DSK_DEBUG_CHKCAT=0x00000000L
  39. endif
  40. # **** possible debug modules for SK_DEBUG_CHKMOD *****************
  41. # SK_DBGMOD_MERR 0x00000001L /* general module error indication */
  42. # SK_DBGMOD_HWM 0x00000002L /* Hardware init module */
  43. # SK_DBGMOD_RLMT 0x00000004L /* RLMT module */
  44. # SK_DBGMOD_VPD 0x00000008L /* VPD module */
  45. # SK_DBGMOD_I2C 0x00000010L /* I2C module */
  46. # SK_DBGMOD_PNMI 0x00000020L /* PNMI module */
  47. # SK_DBGMOD_CSUM 0x00000040L /* CSUM module */
  48. # SK_DBGMOD_ADDR 0x00000080L /* ADDR module */
  49. # SK_DBGMOD_DRV 0x00010000L /* DRV module */
  50. # **** possible debug categories for SK_DEBUG_CHKCAT **************
  51. # *** common modules ***
  52. # SK_DBGCAT_INIT 0x00000001L module/driver initialization
  53. # SK_DBGCAT_CTRL 0x00000002L controlling: add/rmv MCA/MAC and other controls (IOCTL)
  54. # SK_DBGCAT_ERR 0x00000004L error handling paths
  55. # SK_DBGCAT_TX 0x00000008L transmit path
  56. # SK_DBGCAT_RX 0x00000010L receive path
  57. # SK_DBGCAT_IRQ 0x00000020L general IRQ handling
  58. # SK_DBGCAT_QUEUE 0x00000040L any queue management
  59. # SK_DBGCAT_DUMP 0x00000080L large data output e.g. hex dump
  60. # SK_DBGCAT_FATAL 0x00000100L large data output e.g. hex dump
  61. # *** driver (file skge.c) ***
  62. # SK_DBGCAT_DRV_ENTRY 0x00010000 entry points
  63. # SK_DBGCAT_DRV_??? 0x00020000 not used
  64. # SK_DBGCAT_DRV_MCA 0x00040000 multicast
  65. # SK_DBGCAT_DRV_TX_PROGRESS 0x00080000 tx path
  66. # SK_DBGCAT_DRV_RX_PROGRESS 0x00100000 rx path
  67. # SK_DBGCAT_DRV_PROGRESS 0x00200000 general runtime
  68. # SK_DBGCAT_DRV_??? 0x00400000 not used
  69. # SK_DBGCAT_DRV_PROM 0x00800000 promiscuous mode
  70. # SK_DBGCAT_DRV_TX_FRAME 0x01000000 display tx frames
  71. # SK_DBGCAT_DRV_ERROR 0x02000000 error conditions
  72. # SK_DBGCAT_DRV_INT_SRC 0x04000000 interrupts sources
  73. # SK_DBGCAT_DRV_EVENT 0x08000000 driver events
  74. EXTRA_CFLAGS += -I. -DSK_USE_CSUM $(DBGDEF)
  75. CFLAGS += $(EXTRA_CFLAGS)
  76. all: $(LIB)
  77. $(LIB): $(OBJS)
  78. $(AR) crv $@ $(OBJS)
  79. #########################################################################
  80. .depend: Makefile $(OBJS:.o=.c)
  81. $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
  82. sinclude .depend
  83. #########################################################################