comparison packages/pkgconf/makrules.src @ 2:443894e2e912 ecos-v1_2_1-release

Block commit of eCos version 1.2.1
author jlarmour
date Tue, 11 May 1999 12:24:34 +0000
parents 3111d98ba7b3
children 1d7f19c9e4d1
comparison
equal deleted inserted replaced
1:72f549f0d891 2:443894e2e912
21 # 21 #
22 # The Original Code is eCos - Embedded Cygnus Operating System, released 22 # The Original Code is eCos - Embedded Cygnus Operating System, released
23 # September 30, 1998. 23 # September 30, 1998.
24 # 24 #
25 # The Initial Developer of the Original Code is Cygnus. Portions created 25 # The Initial Developer of the Original Code is Cygnus. Portions created
26 # by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. 26 # by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved.
27 # ------------------------------------------- 27 # -------------------------------------------
28 # 28 #
29 #####COPYRIGHTEND#### 29 #####COPYRIGHTEND####
30 #=============================================================================== 30 #===============================================================================
31 31
38 38
39 # The object files and the dependency files can be deduced mainly 39 # The object files and the dependency files can be deduced mainly
40 # from the list of source files. OTHER_OBJS and OTHER_DEPS are 40 # from the list of source files. OTHER_OBJS and OTHER_DEPS are
41 # provided as an escape mechanism, as is OTHER_TARGETS. 41 # provided as an escape mechanism, as is OTHER_TARGETS.
42 42
43 COMPILE += $(DRIVERS)
44 DRIVER_DEPS := $(DRIVERS:.c=.D)
45 OTHER_TARGETS += $(DRIVER_DEPS)
43 OBJECTS := $(COMPILE:.cxx=.o) 46 OBJECTS := $(COMPILE:.cxx=.o)
44 OBJECTS := $(OBJECTS:.c=.o) 47 OBJECTS := $(OBJECTS:.c=.o)
45 OBJECTS := $(OBJECTS:.S=.o) 48 OBJECTS := $(OBJECTS:.S=.o)
46 OBJECTS := $(foreach obj,$(OBJECTS),$(dir $(obj))$(PACKAGE)_$(notdir $(obj))) 49 OBJECTS := $(foreach obj,$(OBJECTS),$(dir $(obj))$(PACKAGE)_$(notdir $(obj)))
47 DEPS := $(OBJECTS:.o=.d) 50 DEPS := $(OBJECTS:.o=.d)
75 @$(CAT) $(DEPS) > makefile.deps 78 @$(CAT) $(DEPS) > makefile.deps
76 endif 79 endif
77 80
78 81
79 # Updating the library involves using ar with any object files that 82 # Updating the library involves using ar with any object files that
80 # have been rebuilt. After any s 83 # have been rebuilt.
81 84
82 $(LIBRARY).stamp: $(OBJECTS) 85 $(LIBRARY).stamp: $(OBJECTS)
83 ifneq ($(strip $(OBJECTS)),) 86 ifneq ($(strip $(OBJECTS)),)
84 $(AR) crs $(PREFIX)/lib/$(LIBRARY) $? 87 $(AR) crs $(PREFIX)/lib/$(LIBRARY) $?
85 endif 88 endif
86 $(TOUCH) $@ 89 $(TOUCH) $@
87
88 90
89 # The clean target cleans up the intermediate files, any object 91 # The clean target cleans up the intermediate files, any object
90 # files, and any dependency files. 92 # files, and any dependency files.
91 93
92 clean: $(OTHER_CLEAN) 94 clean: $(OTHER_CLEAN)