OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [armnommu/] [drivers/] [char/] [Makefile] - Diff between revs 1765 and 1782

Only display areas with differences | Details | Blame | View Log

Rev 1765 Rev 1782
#
#
# Makefile for the kernel character device drivers.
# Makefile for the kernel character device drivers.
#
#
# Note! Dependencies are done automagically by 'make dep', which also
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
# unless it's something special (ie not a .c file).
#
#
# Note 2! The CFLAGS definitions are now inherited from the
# Note 2! The CFLAGS definitions are now inherited from the
# parent makes..
# parent makes..
#
#
#
#
# This file contains the font map for the default font
# This file contains the font map for the default font
#
#
FONTMAPFILE = cp437.uni
FONTMAPFILE = cp437.uni
# Links to make
# Links to make
LK = conmakehash.c consolemap.c consolemap.h cp437.uni random.c tty_ioctl.c softdog.c
LK = conmakehash.c consolemap.c consolemap.h cp437.uni random.c tty_ioctl.c softdog.c
all: links first_rule
all: links first_rule
L_TARGET := char.a
L_TARGET := char.a
M_OBJS   :=
M_OBJS   :=
L_OBJS   := tty_io.o n_tty.o tty_ioctl.o pty.o mem.o random.o
L_OBJS   := tty_io.o n_tty.o tty_ioctl.o pty.o mem.o random.o
# architecture options
# architecture options
ifeq ($(CONFIG_SERIAL_TRIO),y)
ifeq ($(CONFIG_SERIAL_TRIO),y)
  L_OBJS += trioserial.o
  L_OBJS += trioserial.o
else
else
  ifeq ($(CONFIG_SERIAL_TRIO),m)
  ifeq ($(CONFIG_SERIAL_TRIO),m)
    M_OBJS += trioserial.o
    M_OBJS += trioserial.o
  endif
  endif
endif
endif
ifeq ($(MACHINE),arc)
ifeq ($(MACHINE),arc)
  ifeq ($(CONFIG_SERIAL),y)
  ifeq ($(CONFIG_SERIAL),y)
    L_OBJS += serial6850.o
    L_OBJS += serial6850.o
  else
  else
    ifeq ($(CONFIG_SERIAL),m)
    ifeq ($(CONFIG_SERIAL),m)
      M_OBJS += serial6850.o
      M_OBJS += serial6850.o
    endif
    endif
  endif
  endif
else
else
  ifeq ($(CONFIG_SERIAL),y)
  ifeq ($(CONFIG_SERIAL),y)
    SL = y
    SL = y
  else
  else
    ifeq ($(CONFIG_SERIAL),m)
    ifeq ($(CONFIG_SERIAL),m)
      SM = m
      SM = m
    endif
    endif
  endif
  endif
endif
endif
ifeq ($(MACHINE),arc)
ifeq ($(MACHINE),arc)
  L_OBJS += console.o consoledriver.o keyboard.o keyb_arc.o vc_screen.o selection.o \
  L_OBJS += console.o consoledriver.o keyboard.o keyb_arc.o vc_screen.o selection.o \
                defkeymap.o consolemap.o vt.o
                defkeymap.o consolemap.o vt.o
  MOUSE_OBJS =
  MOUSE_OBJS =
endif
endif
ifeq ($(MACHINE),a5k)
ifeq ($(MACHINE),a5k)
  L_OBJS += console.o consoledriver.o keyboard.o keyb_arc.o vc_screen.o selection.o \
  L_OBJS += console.o consoledriver.o keyboard.o keyb_arc.o vc_screen.o selection.o \
                defkeymap.o consolemap.o vt.o
                defkeymap.o consolemap.o vt.o
  MOUSE_OBJS =
  MOUSE_OBJS =
endif
endif
ifeq ($(MACHINE),rpc)
ifeq ($(MACHINE),rpc)
  L_OBJS += console.o consoledriver.o keyboard.o keyb_ps2.o vc_screen.o selection.o \
  L_OBJS += console.o consoledriver.o keyboard.o keyb_ps2.o vc_screen.o selection.o \
                defkeymap.o consolemap.o vt.o
                defkeymap.o consolemap.o vt.o
ifeq ($(CONFIG_RPCMOUSE),y)
ifeq ($(CONFIG_RPCMOUSE),y)
  MOUSE_OBJS = mouse_rpc.o
  MOUSE_OBJS = mouse_rpc.o
endif
endif
endif
endif
ifeq ($(MACHINE),ebsa110)
ifeq ($(MACHINE),ebsa110)
  L_OBJS += console-dummy.o vt-dummy.o
  L_OBJS += console-dummy.o vt-dummy.o
endif
endif
ifeq ($(MACHINE),trio)
ifeq ($(MACHINE),trio)
  L_OBJS += console-trio.o vt-dummy.o kbd_trio.o
  L_OBJS += console-trio.o vt-dummy.o kbd_trio.o
endif
endif
# Common dependencies
# Common dependencies
ifeq ($(CONFIG_ATOMWIDE_SERIAL),y)
ifeq ($(CONFIG_ATOMWIDE_SERIAL),y)
  L_OBJS += serial-atomwide.o
  L_OBJS += serial-atomwide.o
  SL=y
  SL=y
else
else
  ifeq ($(CONFIG_ATOMWIDE_SERIAL),m)
  ifeq ($(CONFIG_ATOMWIDE_SERIAL),m)
    M_OBJS += serial-atomwide.o
    M_OBJS += serial-atomwide.o
    SM=m
    SM=m
  endif
  endif
endif
endif
ifeq ($(CONFIG_DUALSP_SERIAL),y)
ifeq ($(CONFIG_DUALSP_SERIAL),y)
  L_OBJS += serial-dualsp.o
  L_OBJS += serial-dualsp.o
  SL=y
  SL=y
else
else
  ifeq ($(CONFIG_DUALSP_SERIAL),m)
  ifeq ($(CONFIG_DUALSP_SERIAL),m)
    M_OBJS += serial-dualsp.o
    M_OBJS += serial-dualsp.o
    SM=m
    SM=m
  endif
  endif
endif
endif
ifdef SL
ifdef SL
  LX_OBJS += serial.o
  LX_OBJS += serial.o
else
else
  ifdef SM
  ifdef SM
    MX_OBJS += serial.o
    MX_OBJS += serial.o
  endif
  endif
endif
endif
ifeq ($(CONFIG_PRINTER),y)
ifeq ($(CONFIG_PRINTER),y)
  L_OBJS += lp.o
  L_OBJS += lp.o
else
else
  ifeq ($(CONFIG_PRINTER),m)
  ifeq ($(CONFIG_PRINTER),m)
    M_OBJS += lp.o
    M_OBJS += lp.o
  endif
  endif
endif
endif
ifeq ($(CONFIG_UMISC),y)
ifeq ($(CONFIG_UMISC),y)
# To support third-party modules, misc.c must reside in the kernel
# To support third-party modules, misc.c must reside in the kernel
M = y
M = y
endif
endif
ifeq ($(CONFIG_MOUSE),y)
ifeq ($(CONFIG_MOUSE),y)
  M = y
  M = y
  L_OBJS += mouse.o $(MOUSE_OBJS)
  L_OBJS += mouse.o $(MOUSE_OBJS)
else
else
  ifeq ($(CONFIG_MOUSE),m)
  ifeq ($(CONFIG_MOUSE),m)
    MM = m
    MM = m
    M_OBJS += mouse.o $(MOUSE_OBJS)
    M_OBJS += mouse.o $(MOUSE_OBJS)
  endif
  endif
endif
endif
ifeq ($(CONFIG_SOFT_WATCHDOG),y)
ifeq ($(CONFIG_SOFT_WATCHDOG),y)
M = y
M = y
L_OBJS += softdog.o
L_OBJS += softdog.o
else
else
  ifeq ($(CONFIG_SOFT_WATCHDOG),m)
  ifeq ($(CONFIG_SOFT_WATCHDOG),m)
  M_OBJS += softdog.o
  M_OBJS += softdog.o
  MM = m
  MM = m
  endif
  endif
endif
endif
ifdef M
ifdef M
  L_OBJS += misc.o
  L_OBJS += misc.o
else
else
  ifdef MM
  ifdef MM
    M_OBJS += misc.o
    M_OBJS += misc.o
  endif
  endif
endif
endif
include $(TOPDIR)/Rules.make
include $(TOPDIR)/Rules.make
fastdep: links uni_hash.tbl
fastdep: links uni_hash.tbl
conmakehash: conmakehash.c
conmakehash: conmakehash.c
        $(HOSTCC) -o conmakehash conmakehash.c
        $(HOSTCC) -o conmakehash conmakehash.c
uni_hash.tbl: $(FONTMAPFILE) conmakehash
uni_hash.tbl: $(FONTMAPFILE) conmakehash
        ./conmakehash $(FONTMAPFILE) > uni_hash.tbl
        ./conmakehash $(FONTMAPFILE) > uni_hash.tbl
.PHONY: links
.PHONY: links
links:
links:
        -@for f in $(LK); do \
        -@for f in $(LK); do \
                if [ ! -e $$f ]; then \
                if [ ! -e $$f ]; then \
                        echo "ln -s ../../../../drivers/char/$$f .";\
                        echo "ln -s ../../../../drivers/char/$$f .";\
                        ln -s ../../../../drivers/char/$$f .; \
                        ln -s ../../../../drivers/char/$$f .; \
                fi; \
                fi; \
        done
        done
mrproper:
mrproper:
        -@for f in $(LK); do \
        -@for f in $(LK); do \
                if [ -L $$f ]; then \
                if [ -L $$f ]; then \
                        echo $(RM) $$f; \
                        echo $(RM) $$f; \
                        $(RM) $$f; \
                        $(RM) $$f; \
                elif [ -f $$f ]; then \
                elif [ -f $$f ]; then \
                        echo not removing $$f; \
                        echo not removing $$f; \
                fi; \
                fi; \
        done
        done
        $(RM) conmakehash
        $(RM) conmakehash
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.