Changeset 25b0e6a in mainline for libc/Makefile
- Timestamp:
- 2005-11-22T15:58:55Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc6f688
- Parents:
- 7b6c5f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/Makefile
r7b6c5f4 r25b0e6a 27 27 # 28 28 29 ## Make some default assumptions30 #31 32 ifndef ARCH33 ARCH = ia3234 endif35 36 29 ## Common compiler flags 37 30 # 38 31 32 LIBC_PREFIX = . 39 33 DEFS = -DARCH=$(ARCH) 40 CFLAGS = -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -I include34 CFLAGS = -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -I$(LIBC_PREFIX)/include 41 35 LFLAGS = -M 42 36 AFLAGS = 43 37 44 ## Setup platform configuration38 ## Setup toolchain 45 39 # 46 40 47 include arch/$(ARCH)/Makefile.inc 48 49 ## Toolchain configuration 50 # 51 52 ifeq ($(COMPILER),native) 53 CC = gcc 54 AS = as 55 LD = ld 56 AR = ar 57 OBJCOPY = objcopy 58 OBJDUMP = objdump 59 else 60 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 61 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 62 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 63 AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar 64 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 65 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 66 endif 41 include $(LIBC_PREFIX)/Makefile.toolchain 67 42 68 43 ## Sources … … 81 56 .PHONY: all clean depend 82 57 83 all: libc.a 58 all: libc.a _link.ld 84 59 85 60 -include Makefile.depend 86 61 87 62 clean: 88 -rm -f libc.a Makefile.depend63 -rm -f libc.a _link.ld Makefile.depend 89 64 find generic/ arch/$(ARCH)/ -name '*.o' -follow -exec rm \{\} \; 90 65 … … 94 69 libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 95 70 $(AR) rc libc.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 71 72 _link.ld: _link.ld.in 73 $(CC) $(DEFS) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@ 96 74 97 75 %.o: %.S
Note:
See TracChangeset
for help on using the changeset viewer.