Changeset 985e26d2 in mainline for uspace/srv/hid/fb/Makefile.build


Ignore:
Timestamp:
2010-01-07T19:06:59Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8190e63
Parents:
743e17b (diff), eca2435 (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.build

    r743e17b r985e26d2  
    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 LIBS = $(LIBC_PREFIX)/libc.a
    3835
    3936## Sources
    4037#
    4138
    42 OUTPUT = fb
    4339SOURCES = \
    4440        main.c \
     
    8379CFLAGS += -D$(UARCH)
    8480
    85 
    8681OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
    8782
    88 .PHONY: all clean depend disasm
     83.PHONY: all
    8984
    9085all: $(OUTPUT) $(OUTPUT).disasm
    9186
    92 -include Makefile.depend
     87-include $(DEPEND)
    9388
    94 clean:
    95         -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
    96 
    97 depend:
    98         $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
     89$(OUTPUT).disasm: $(OUTPUT)
     90        $(OBJDUMP) -d $< > $@
    9991
    10092$(OUTPUT): $(OBJECTS) $(LIBS)
    10193        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    10294
    103 disasm: $(OUTPUT).disasm
     95%.o: %.c $(DEPEND)
     96        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     97ifeq ($(PRECHECK),y)
     98        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     99endif
    104100
    105 $(OUTPUT).disasm: $(OUTPUT)
    106         $(OBJDUMP) -d $< > $@
    107 
    108 %.o: %.S
    109         $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
    110 
    111 %.o: %.s
    112         $(AS) $(AFLAGS) $< -o $@
    113 
    114 %.o: %.c
    115         $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     101$(DEPEND):
     102        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null
     103        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
Note: See TracChangeset for help on using the changeset viewer.