gonzui


Format: Advanced Search

tkernel_2/driver/tef_em1d/sysdsk/build/Makefilebare sourcepermlink (0.01 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 : sysdsk (em1d)
   21: 
   22: MACHINE = em1d
   23: TETYPE = tef
   24: 
   25: # ----------------------------------------------------------------------------
   26: 
   27: DEPS = Dependencies
   28: DEPENDENCIES_OUTPUT := $(DEPS)
   29: 
   30: include $(BD)/etc/makerules
   31: 
   32: HEADER = $(BD)/include
   33: 
   34: # ----------------------------------------------------------------------------
   35: 
   36: TARGET = sysdsk
   37: 
   38: S = ../src
   39: 
   40: VPATH = $(S)
   41: HEADER += $(S)
   42: 
   43: SRC = main.c accept.c common.c inthdr.c pccard.c \
   44:         ata.c atacmd.c ataio.c mem.c
   45: 
   46: SOBJ =  ../obj/mmc-common.o ../obj/mmc-em1d512.o
   47: OBJ = $(addsuffix .o, $(basename $(SRC)))
   48: 
   49: CFLAGS += -DUSE_MEMDRV -DUSE_MMCDRV
   50: CFLAGS += -DUSE_MMC_MULTI -DUSE_MMC_SD4BIT
   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) $^ $(SOBJ) $(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)