Changes in uspace/lib/softint/Makefile [1ea99cc:fcd7053] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softint/Makefile
r1ea99cc rfcd7053 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2008 Jiri Svoboda4 3 # All rights reserved. 5 4 # … … 39 38 40 39 CFLAGS += -Iinclude 41 PIC_CFLAGS := $(CFLAGS) -fPIC -D__PIC__42 40 43 41 ## Sources … … 51 49 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 52 50 53 OBJECTS := $(GENERIC_OBJECTS)54 PIC_OBJECTS := $(addsuffix .pio,$(basename $(OBJECTS)))55 56 51 .PHONY: all clean depend 57 52 58 all: libsoftint.a libsoftint.pic.a53 all: libsoftint.a 59 54 60 55 -include Makefile.depend 61 56 62 57 clean: 63 -rm -f libsoftint.a libsoftint.pic.aMakefile.depend64 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 \{\} \; 65 60 66 61 depend: 67 62 -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/null69 63 70 libsoftint.a: depend $(OBJECTS) 71 $(AR) rc $@ $(OBJECTS) 72 73 libsoftint.pic.a: depend $(PIC_OBJECTS) 74 $(AR) rc $@ $(PIC_OBJECTS) 64 libsoftint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 65 $(AR) rc libsoftint.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 75 66 76 67 %.o: %.S … … 82 73 %.o: %.c 83 74 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 84 85 %.pio: %.S86 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@87 88 %.pio: %.s89 $(AS) $(AFLAGS) $< -o $@90 91 %.pio: %.c92 $(CC) $(DEFS) $(PIC_CFLAGS) -c $< -o $@
Note:
See TracChangeset
for help on using the changeset viewer.