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/hw/cir/obio/Makefile.build

    r743e17b r985e26d2  
    11#
    2 # Copyright (c) 2006 Martin Decky
     2# Copyright (c) 2005 Martin Decky
     3# Copyright (c) 2007 Jakub Jermar
    34# All rights reserved.
    45#
     
    3031#
    3132
    32 
    33 LIBC_PREFIX = ../../../lib/libc
    34 SOFTINT_PREFIX = ../../../lib/softint
    35 
     33include Makefile.common
    3634include $(LIBC_PREFIX)/Makefile.toolchain
    37 
    38 LIBS = $(LIBC_PREFIX)/libc.a
    3935
    4036## Sources
    4137#
    4238
    43 OUTPUT = obio
    4439SOURCES = \
    4540        obio.c
     
    4742OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
    4843
    49 .PHONY: all clean depend disasm
     44.PHONY: all
    5045
    5146all: $(OUTPUT) $(OUTPUT).disasm
    5247
    53 -include Makefile.depend
     48-include $(DEPEND)
    5449
    55 clean:
    56         -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
    57 
    58 depend:
    59         $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
     50$(OUTPUT).disasm: $(OUTPUT)
     51        $(OBJDUMP) -d $< > $@
    6052
    6153$(OUTPUT): $(OBJECTS) $(LIBS)
    6254        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6355
    64 disasm: $(OUTPUT).disasm
     56%.o: %.c $(DEPEND)
     57        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    6561
    66 $(OUTPUT).disasm: $(OUTPUT)
    67         $(OBJDUMP) -d $< > $@
    68 
    69 %.o: %.S
    70         $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
    71 
    72 %.o: %.s
    73         $(AS) $(AFLAGS) $< -o $@
    74 
    75 %.o: %.c
    76         $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     62$(DEPEND):
     63        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null
     64        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
Note: See TracChangeset for help on using the changeset viewer.