Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/softint/Makefile

    r1ea99cc rfcd7053  
    11#
    22# Copyright (c) 2005 Martin Decky
    3 # Copyright (c) 2008 Jiri Svoboda
    43# All rights reserved.
    54#
     
    3938
    4039CFLAGS += -Iinclude
    41 PIC_CFLAGS := $(CFLAGS) -fPIC -D__PIC__
    4240
    4341## Sources
     
    5149GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
    5250
    53 OBJECTS := $(GENERIC_OBJECTS)
    54 PIC_OBJECTS := $(addsuffix .pio,$(basename $(OBJECTS)))
    55 
    5651.PHONY: all clean depend
    5752
    58 all: libsoftint.a libsoftint.pic.a
     53all: libsoftint.a
    5954
    6055-include Makefile.depend
    6156
    6257clean:
    63         -rm -f libsoftint.a libsoftint.pic.a Makefile.depend
    64         find generic/ \( -name '*.o' -o -name '*.pio' \) -follow -exec rm \{\} \;
     58        -rm -f libsoftint.a Makefile.depend
     59        find generic/ -name '*.o' -follow -exec rm \{\} \;
    6560
    6661depend:
    6762        -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
    6963
    70 libsoftint.a: depend $(OBJECTS)
    71         $(AR) rc $@ $(OBJECTS)
    72 
    73 libsoftint.pic.a: depend $(PIC_OBJECTS)
    74         $(AR) rc $@ $(PIC_OBJECTS)
     64libsoftint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
     65        $(AR) rc libsoftint.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
    7566
    7667%.o: %.S
     
    8273%.o: %.c
    8374        $(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.