Changeset 1ea99cc in mainline for uspace/lib/softint/Makefile
- Timestamp:
- 2009-08-20T20:47:35Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b50b5af2
- Parents:
- 24edc18
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softint/Makefile
r24edc18 r1ea99cc 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2008 Jiri Svoboda 3 4 # All rights reserved. 4 5 # … … 38 39 39 40 CFLAGS += -Iinclude 41 PIC_CFLAGS := $(CFLAGS) -fPIC -D__PIC__ 40 42 41 43 ## Sources … … 49 51 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 50 52 53 OBJECTS := $(GENERIC_OBJECTS) 54 PIC_OBJECTS := $(addsuffix .pio,$(basename $(OBJECTS))) 55 51 56 .PHONY: all clean depend 52 57 53 all: libsoftint.a 58 all: libsoftint.a libsoftint.pic.a 54 59 55 60 -include Makefile.depend 56 61 57 62 clean: 58 -rm -f libsoftint.a Makefile.depend59 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 \{\} \; 60 65 61 66 depend: 62 67 -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 63 69 64 libsoftint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 65 $(AR) rc libsoftint.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 70 libsoftint.a: depend $(OBJECTS) 71 $(AR) rc $@ $(OBJECTS) 72 73 libsoftint.pic.a: depend $(PIC_OBJECTS) 74 $(AR) rc $@ $(PIC_OBJECTS) 66 75 67 76 %.o: %.S … … 73 82 %.o: %.c 74 83 $(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.