gonzui


Format: Advanced Search

tkernel_2/driver/tef_em1d/kbpd/build/Makefilebare sourcepermlink (0.00 seconds)

Search this content:

    1: #
    2: # ----------------------------------------------------------------------
    3: #     T-Kernel 2.0 Software Package
    4: #
    5: #     Copyright 2011 by Ken Sakamura.
    6: #     This software is distributed under the latest version of T-License 2.x.
    7: # ----------------------------------------------------------------------
    8: #
    9: #     Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10: #     Modified by T-Engine Forum at 2012/11/07.
   11: #     Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12: #
   13: # ----------------------------------------------------------------------
   14: #
   15: 
   16: #
   17: #       Makefile
   18: #               for GNU make
   19: #
   20: #       device driver : kbpd (em1d)
   21: 
   22: MACHINE = em1d
   23: TETYPE = tef
   24: 
   25: SRC_SYSDEP =
   26: 
   27: # ----------------------------------------------------------------------------
   28: 
   29: DEPS = Dependencies
   30: DEPENDENCIES_OUTPUT := $(DEPS)
   31: 
   32: include $(BD)/etc/makerules
   33: 
   34: HEADER = $(BD)/include
   35: 
   36: # ----------------------------------------------------------------------------
   37: 
   38: TARGET = kbpd
   39: 
   40: S = ../src
   41: 
   42: VPATH = $(S)
   43: HEADER += $(S)
   44: 
   45: SRC = main.c accept.c receive.c \
   46:         statmach.c key.c pdbut.c \
   47:         innevt.c pdsim.c devcmd.c etc.c
   48: SRC += $(SRC_SYSDEP)
   49: 
   50: OBJ = $(addsuffix .o, $(basename $(SRC)))
   51: 
   52: CFLAGS += $(CFLAGS_WARNING)
   53: 
   54: # ----------------------------------------------------------------------------
   55: 
   56: .PHONY: all clean install clean_install
   57: 
   58: ALL = $(TARGET).o
   59: 
   60: all: $(ALL)
   61: 
   62: $(TARGET).o: $(OBJ)
   63:         $(LINK_R.o) $^ $(OUTPUT_OPTION)
   64: 
   65: clean:
   66:         $(RM) $(OBJ) $(ALL) $(DEPS)
   67: 
   68: install: $(addprefix $(DRIVER_INSTALLDIR)/, $(ALL))
   69: 
   70: clean_install:
   71:         $(RM) $(addprefix $(DRIVER_INSTALLDIR)/, $(ALL))
   72: 
   73: ifdef DEPENDENCIES_OUTPUT
   74:   $(DEPS): ; touch $(DEPS)
   75: else
   76:   $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
   77: endif
   78: -include $(DEPS)