Ignore:
Timestamp:
2010-01-10T12:16:59Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c77a64f
Parents:
309ede1 (diff), 1ac3a52 (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/console/Makefile.build

    r309ede1 r5f70118  
    11#
    22# Copyright (c) 2005 Martin Decky
     3# Copyright (c) 2007 Jakub Jermar
    34# All rights reserved.
    45#
     
    3031#
    3132
    32 LIBC_PREFIX = ../../lib/libc
    33 SOFTINT_PREFIX = ../../lib/softint
    34 
     33include Makefile.common
    3534include $(LIBC_PREFIX)/Makefile.toolchain
    36 
    37 CFLAGS += -I.
    38 
    39 LIBS = $(LIBC_PREFIX)/libc.a
    4035
    4136## Sources
    4237#
    4338
    44 OUTPUT = console
    45 
    46 GENERIC_SOURCES = \
     39SOURCES = \
    4740        console.c \
    4841        screenbuffer.c \
     
    6255        gfx/anim_4.ppm
    6356
    64 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) \
    65         $(addsuffix .o,$(basename $(IMAGES)))
     57OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) $(addsuffix .o,$(basename $(IMAGES)))
    6658
    67 OBJECTS := $(GENERIC_OBJECTS)
    68 
    69 .PHONY: all clean depend disasm
     59.PHONY: all
    7060
    7161all: $(OUTPUT) $(OUTPUT).disasm
    7262
    73 -include Makefile.depend
     63-include $(DEPEND)
    7464
    75 clean:
    76         -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
    77 
    78 depend:
    79         $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
     65$(OUTPUT).disasm: $(OUTPUT)
     66        $(OBJDUMP) -d $< > $@
    8067
    8168$(OUTPUT): $(OBJECTS) $(LIBS)
    8269        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    8370
    84 disasm: $(OUTPUT).disasm
    85 
    86 $(OUTPUT).disasm: $(OUTPUT)
    87         $(OBJDUMP) -d $< > $@
    88 
    89 %.o: %.S
    90         $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
    91 
    92 %.o: %.s
    93         $(AS) $(AFLAGS) $< -o $@
    94 
    95 %.o: %.c
     71%.o: %.c $(DEPEND)
    9672        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     73ifeq ($(PRECHECK),y)
     74        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     75endif
    9776
    9877%.o: %.ppm
    9978        $(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) $< $@
     79
     80$(DEPEND):
     81        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null
     82        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
Note: See TracChangeset for help on using the changeset viewer.