Changeset 1ea99cc in mainline for uspace/lib/softint/Makefile


Ignore:
Timestamp:
2009-08-20T20:47:35Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b50b5af2
Parents:
24edc18
Message:

Merge changes from original Subversion dynload branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/softint/Makefile

    r24edc18 r1ea99cc  
    11#
    22# Copyright (c) 2005 Martin Decky
     3# Copyright (c) 2008 Jiri Svoboda
    34# All rights reserved.
    45#
     
    3839
    3940CFLAGS += -Iinclude
     41PIC_CFLAGS := $(CFLAGS) -fPIC -D__PIC__
    4042
    4143## Sources
     
    4951GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
    5052
     53OBJECTS := $(GENERIC_OBJECTS)
     54PIC_OBJECTS := $(addsuffix .pio,$(basename $(OBJECTS)))
     55
    5156.PHONY: all clean depend
    5257
    53 all: libsoftint.a
     58all: libsoftint.a libsoftint.pic.a
    5459
    5560-include Makefile.depend
    5661
    5762clean:
    58         -rm -f libsoftint.a Makefile.depend
    59         find generic/ -name '*.o' -follow -exec rm \{\} \;
     63        -rm -f libsoftint.a libsoftint.pic.a Makefile.depend
     64        find generic/ \( -name '*.o' -o -name '*.pio' \) -follow -exec rm \{\} \;
    6065
    6166depend:
    6267        -makedepend -f - -- $(DEPEMD_DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
     68        -makedepend $(DEFS) $(PIC_CFLAGS) -o.pio -f - $(GENERIC_SOURCES) >> Makefile.depend 2> /dev/null
    6369
    64 libsoftint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
    65         $(AR) rc libsoftint.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
     70libsoftint.a: depend $(OBJECTS)
     71        $(AR) rc $@ $(OBJECTS)
     72
     73libsoftint.pic.a: depend $(PIC_OBJECTS)
     74        $(AR) rc $@ $(PIC_OBJECTS)
    6675
    6776%.o: %.S
     
    7382%.o: %.c
    7483        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     84
     85%.pio: %.S
     86        $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
     87
     88%.pio: %.s
     89        $(AS) $(AFLAGS) $< -o $@
     90
     91%.pio: %.c
     92        $(CC) $(DEFS) $(PIC_CFLAGS) -c $< -o $@
Note: See TracChangeset for help on using the changeset viewer.