Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/fb/Makefile

    r1b1164e8 r4e9aaf5  
    2828#
    2929
    30 USPACE_PREFIX = ../../..
    31 BINARY = fb
     30include Makefile.common
    3231
    33 SOURCES = \
    34         main.c \
    35         ppm.c
     32.PHONY: all clean
    3633
    37 ifneq ($(UARCH),ia64)
    38         SOURCES += fb.c \
    39                 font-8x16.c
    40         EXTRA_CFLAGS = -DFB_ENABLED
    41 endif
     34all: $(LIBC_PREFIX)/../../../Makefile.common $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBS)
     35        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    4237
    43 ifeq ($(UARCH),ia32)
    44         SOURCES += ega.c
    45         EXTRA_CFLAGS = -DEGA_ENABLED
    46 endif
    47 
    48 ifeq ($(UARCH),ia64)
    49         SOURCES += ega.c \
    50                 ski.c \
    51                 serial_console.c
    52         EXTRA_CFLAGS = -DSKI_ENABLED -DEGA_ENABLED
    53 endif
    54 
    55 ifeq ($(UARCH),amd64)
    56         SOURCES += ega.c
    57         EXTRA_CFLAGS = -DEGA_ENABLED
    58 endif
    59 
    60 ifeq ($(UARCH),mips32)
    61         SOURCES += msim.c \
    62                 serial_console.c
    63         EXTRA_CFLAGS = -DMSIM_ENABLED
    64 endif
    65 
    66 ifeq ($(UARCH),sparc64)
    67         ifeq ($(PROCESSOR), sun4v)
    68                 SOURCES += niagara.c \
    69                         serial_console.c
    70                 EXTRA_CFLAGS = -DNIAGARA_ENABLED
    71         endif
    72 
    73         ifeq ($(MACHINE), serengeti)
    74                 SOURCES += sgcn.c \
    75                         serial_console.c
    76                 EXTRA_CFLAGS = -DSGCN_ENABLED
    77         endif
    78 endif
    79 
    80 EXTRA_CFLAGS += -D$(UARCH)
    81 
    82 include $(USPACE_PREFIX)/Makefile.common
     38clean:
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     40        find . -name '*.o' -follow -exec rm \{\} \;
Note: See TracChangeset for help on using the changeset viewer.