Changeset 371bd7d in mainline for uspace/srv/hid/fb/Makefile


Ignore:
Timestamp:
2010-03-27T09:22:17Z (16 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36a75a2
Parents:
cd82bb1 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

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

    rcd82bb1 r371bd7d  
    2828#
    2929
    30 ## Setup toolchain
    31 #
    32 
    33 include Makefile.common
    34 include $(LIBC_PREFIX)/Makefile.toolchain
    35 
    36 ## Sources
    37 #
     30USPACE_PREFIX = ../../..
     31BINARY = fb
    3832
    3933SOURCES = \
    40         klog.c
     34        main.c \
     35        ppm.c
    4136
    42 OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     37ifneq ($(UARCH),ia64)
     38        SOURCES += fb.c \
     39                font-8x16.c
     40        EXTRA_CFLAGS = -DFB_ENABLED
     41endif
    4342
    44 .PHONY: all
     43ifeq ($(UARCH),ia32)
     44        SOURCES += ega.c
     45        EXTRA_CFLAGS = -DEGA_ENABLED
     46endif
    4547
    46 all: $(OUTPUT) $(OUTPUT).disasm
     48ifeq ($(UARCH),ia64)
     49        SOURCES += ega.c \
     50                ski.c \
     51                serial_console.c
     52        EXTRA_CFLAGS = -DSKI_ENABLED -DEGA_ENABLED
     53endif
    4754
    48 -include $(DEPEND)
     55ifeq ($(UARCH),amd64)
     56        SOURCES += ega.c
     57        EXTRA_CFLAGS = -DEGA_ENABLED
     58endif
    4959
    50 $(OUTPUT).disasm: $(OUTPUT)
    51         $(OBJDUMP) -d $< > $@
     60ifeq ($(UARCH),mips32)
     61        SOURCES += msim.c \
     62                serial_console.c
     63        EXTRA_CFLAGS = -DMSIM_ENABLED
     64endif
    5265
    53 $(OUTPUT): $(OBJECTS) $(LIBS)
    54         $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     66ifeq ($(UARCH),sparc64)
     67        ifeq ($(PROCESSOR), sun4v)
     68                SOURCES += niagara.c \
     69                        serial_console.c
     70                EXTRA_CFLAGS = -DNIAGARA_ENABLED
     71        endif
    5572
    56 %.o: %.c $(DEPEND)
    57         $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     73        ifeq ($(MACHINE), serengeti)
     74                SOURCES += sgcn.c \
     75                        serial_console.c
     76                EXTRA_CFLAGS = -DSGCN_ENABLED
     77        endif
     78endif
    5879
    59 $(DEPEND):
    60         makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null
    61         -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
     80EXTRA_CFLAGS += -D$(UARCH)
     81
     82include $(USPACE_PREFIX)/Makefile.common
Note: See TracChangeset for help on using the changeset viewer.