Changeset 1937
- Timestamp:
- 11/21/08 11:35:19 (2 months ago)
- Files:
-
- trunk/bertos/config.mk (modified) (2 diffs)
- trunk/bertos/rules.mk (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bertos/config.mk
r1694 r1937 29 29 CC = gcc 30 30 CXX = g++ 31 AR = ar 31 32 AS = $(CC) -x assembler-with-cpp 32 33 LD = $(CC) … … 113 114 # additional libs 114 115 LIB = -lm 116 117 # Archiver flags 118 ARFLAGS = rcs trunk/bertos/rules.mk
r1936 r1937 40 40 # e.g. Embedded target = hex, s19, bin 41 41 # Hosted = exe 42 # Library = lib.a 42 43 TRG_TGT = $(TRG:%=$(OUTDIR)/%.tgt) 43 44 … … 74 75 $$(OUTDIR)/$(1).tgt : $$(OUTDIR)/$(1).s19 $$(OUTDIR)/$(1).hex $$(OUTDIR)/$(1).bin 75 76 else 76 #On Darwin architecture the assembly doesn't link correctly if th is flag isset.77 #On Darwin architecture the assembly doesn't link correctly if these flags are set. 77 78 ifeq ($(shell uname | grep -c "Darwin"),1) 78 79 LIST_FLAGS := "" … … 82 83 #use hosted specific map flags 83 84 $(1)_MAP_FLAGS = $$(MAP_FLAGS_HOST) 84 #in hosted application we need only executable file. 85 $$(OUTDIR)/$(1).tgt : $$(OUTDIR)/$(1) 85 86 #Handle library creation 87 ifeq ($$($(1)_MAKELIB),1) 88 $$(OUTDIR)/$(1).tgt : $$(OUTDIR)/$(1).a 89 else 90 #Otherwise in hosted application we need only executable file. 91 $$(OUTDIR)/$(1).tgt : $$(OUTDIR)/$(1) 92 endif 86 93 endif 87 94 … … 137 144 $(1)_CXX = $$($(1)_CROSS)$$(CXX) 138 145 $(1)_AS = $$($(1)_CROSS)$$(AS) 146 $(1)_AR = $$($(1)_CROSS)$$(AR) 139 147 $(1)_OBJCOPY = $$($(1)_CROSS)$$(OBJCOPY) 140 148 $(1)_STRIP = $$($(1)_CROSS)$$(STRIP) … … 205 213 @$$(MKDIR_P) $$(dir $$@) 206 214 $Q $$($(1)_LD) $$($(1)_OBJ) $$(LIB) $$(LDFLAGS) $$($(1)_LDFLAGS) -o $$@ 215 216 217 # Instructions to create a static library from object files 218 $$(OUTDIR)/$(1).a: bumprev $$($(1)_OBJ) 219 $L "$(1): Creating static library $$@" 220 @$$(MKDIR_P) $$(dir $$@) 221 $Q $$($(1)_AR) $$(ARFLAGS) $$($(1)_ARFLAGS) $$@ $$($(1)_OBJ) 207 222 208 223 # Strip debug info
