Changeset 04803bf in mainline for uspace/app/dltest/Makefile


Ignore:
Timestamp:
2011-03-21T22:00:17Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
143932e
Parents:
b50b5af2 (diff), 7308e84 (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 (needs fixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/dltest/Makefile

    rb50b5af2 r04803bf  
    11#
    2 # Copyright (c) 2005 Martin Decky
     2# Copyright (c) 2011 Jiri Svoboda
    33# All rights reserved.
    44#
     
    2727#
    2828
    29 include ../../../version
     29USPACE_PREFIX = ../..
     30BINARY = dltest
    3031
    31 ## Setup toolchain
    32 #
    33 
    34 LIBC_PREFIX = ../../lib/libc
    35 SOFTINT_PREFIX = ../../lib/softint
    36 
    37 include $(LIBC_PREFIX)/Makefile.toolchain
    38 
    39 CFLAGS += -I../../lib/libc -O0
    40 LFLAGS := -Bdynamic -I/lib/rtld -rpath-link $(LIBC_PREFIX)/shared
    41 
    42 LIBS = $(LIBC_PREFIX)/shared/libc.so.0
    43 
    44 ## Sources
    45 #
    46 
    47 OUTPUT = dltest
    4832SOURCES = \
    4933        dltest.c
    5034
    51 OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
    52 
    53 .PHONY: all clean depend disasm
    54 
    55 all: $(OUTPUT) disasm
    56 
    57 -include Makefile.depend
    58 
    59 clean:
    60         -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend arch/$(UARCH)/_link.ld
    61 
    62 depend:
    63         $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
    64 
    65 $(OUTPUT): $(OBJECTS) $(LIBS)
    66         $(LD) -T $(LIBC_PREFIX)/shared/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    67 
    68 disasm:
    69         $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
    70 
    71 %.o: %.S
    72         $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
    73 
    74 %.o: %.s
    75         $(AS) $(AFLAGS) $< -o $@
    76 
    77 %.o: %.c
    78         $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     35include $(USPACE_PREFIX)/Makefile.common
Note: See TracChangeset for help on using the changeset viewer.