Changeset 1361
- Timestamp:
- 04/29/02 03:37:07 (7 years ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (1 diff)
- lm-sensors/trunk/Makefile (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r1351 r1361 26 26 kernel/drivers/[i2c,sensors] , not misc/ , and 27 27 removes old versions in misc/ . 28 Use $CFLAGS and $CPPFLAGS if defined. 28 29 Module i2c-savage4: new 29 30 Module i2c-viapro: Add support for VT8233A (0x3147) 30 31 Module w83781d: Add multiple VRM version support 32 Program eeprom: new 31 33 Program mkpatch: Install new sensors_vid.h 34 Program sensord: Major update, add rrd support 32 35 Program sensors-detect: Add VT8233A, several S3 devices; fix perl warnings 33 36 lm-sensors/trunk/Makefile
r1359 r1361 126 126 # PROG_EXTRA := sensord 127 127 128 # Set these to add preprocessor or compiler flags, or use 129 # environment variables 130 # CFLAGS := 131 # CPPFLAGS := 132 128 133 ################################################## 129 134 # Below this, nothing should need to be changed. # … … 160 165 161 166 # Determine the default compiler flags 162 # MODCFLAGS is to create in-kernel object files (modules); PROGFLAGS is to 163 # create non-kernel object files (which are linked into executables). 164 # ARCFLAGS are used to create archive object files (static libraries), and 165 # LIBCFLAGS are for shared library objects. 166 CFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS) -O2 167 # Set CFLAGS or CPPFLAGS above to add your own flags to all. 168 # ALLCPPFLAGS/ALLCFLAGS are common flags, plus any user-specified overrides from the environment or make command line. 169 # MODCPPFLAGS/MODCFLAGS is to create in-kernel object files (modules). 170 # PROGCPPFLAGS/PROGCFLAGS is to create non-kernel object files (which are linked into executables). 171 # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries). 172 # LIBCPPFLAGS/LIBCFLAGS are for shared library objects. 173 ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS) 174 ALL_CFLAGS := -O2 167 175 168 176 ifeq ($(DEBUG),1) 169 CFLAGS += -DDEBUG177 ALL_CPPFLAGS += -DDEBUG 170 178 endif 171 179 172 180 ifeq ($(WARN),1) 173 CFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \174 -Wcast-align -Wwrite-strings -Wnested-externs -Winline175 endif 176 177 MODCFLAGS := $(CFLAGS) -D__KERNEL__ -DMODULE -fomit-frame-pointer 178 MODCFLAGS := $(MODCFLAGS) -DEXPORT_SYMTAB 179 PROGCFLAGS := $(CFLAGS) 180 ARCFLAGS := $(CFLAGS) 181 LIBCFLAGS := $(CFLAGS) -fpic 181 ALL_CFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \ 182 -Wcast-align -Wwrite-strings -Wnested-externs -Winline 183 endif 184 185 ALL_CPPFLAGS += $(CPPFLAGS) 186 ALL_CFLAGS += $(CFLAGS) 187 188 MODCPPFLAGS := 189 MODCFLAGS := 182 190 183 191 ifeq ($(MACHINE),alpha) … … 186 194 187 195 ifeq ($(SMP),1) 188 MODC FLAGS += -D__SMP__196 MODCPPFLAGS += -D__SMP__ 189 197 endif 190 198 191 199 ifeq ($(MODVER),1) 192 MODCFLAGS += -DMODVERSIONS -include $(LINUX_HEADERS)/linux/modversions.h 193 endif 200 MODCPPFLAGS += -DMODVERSIONS -include $(LINUX_HEADERS)/linux/modversions.h 201 endif 202 203 MODCPPFLAGS += -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer $(ALL_CPPFLAGS) 204 MODCFLAGS += $(ALL_CFLAGS) 205 PROGCPPFLAGS := $(ALL_CPPFLAGS) 206 PROGCFLAGS := $(ALL_CFLAGS) 207 ARCPPFLAGS := $(ALL_CPPFLAGS) 208 ARCFLAGS := $(ALL_CFLAGS) 209 LIBCPPFLAGS := $(ALL_CPPFLAGS) 210 LIBCFLAGS := -fpic $(ALL_CFLAGS) 194 211 195 212 .PHONY: all clean install version package dep … … 247 264 # .o files are used for modules 248 265 %.o: %.c 249 $(CC) $(MODC FLAGS) -c $< -o $@266 $(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@ 250 267 251 268 %.d: %.c 252 $(CC) -M -MG $(MODC FLAGS) $< | \269 $(CC) -M -MG $(MODCPPFLAGS) $(MODCFLAGS) $< | \ 253 270 sed -e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@ 254 271 … … 257 274 # .ro files are used for programs (as opposed to modules) 258 275 %.ro: %.c 259 $(CC) $(PROGC FLAGS) -c $< -o $@276 $(CC) $(PROGCPPFLAGS) $(PROGCFLAGS) -c $< -o $@ 260 277 261 278 %.rd: %.c 262 $(CC) -M -MG $(PROGC FLAGS) $< | \279 $(CC) -M -MG $(PROGCPPFLAGS) $(PROGCFLAGS) $< | \ 263 280 sed -e 's@^\(.*\)\.o:@$*.rd $*.ro: Makefile '`dirname $*.rd`/Module.mk' @' > $@ 264 281 … … 270 287 # .ao files are used for static archives 271 288 %.ao: %.c 272 $(CC) $(ARC FLAGS) -c $< -o $@289 $(CC) $(ARCPPFLAGS) $(ARCFLAGS) -c $< -o $@ 273 290 274 291 %.ad: %.c 275 $(CC) -M -MG $(ARC FLAGS) $< | \292 $(CC) -M -MG $(ARCPPFLAGS) $(ARCFLAGS) $< | \ 276 293 sed -e 's@^\(.*\)\.o:@$*.ad $*.ao: Makefile '`dirname $*.ad`/Module.mk' @' > $@ 277 294 … … 279 296 # .lo files are used for shared libraries 280 297 %.lo: %.c 281 $(CC) $(LIBC FLAGS) -c $< -o $@298 $(CC) $(LIBCPPFLAGS) $(LIBCFLAGS) -c $< -o $@ 282 299 283 300 %.ld: %.c 284 $(CC) -M -MG $(LIBC FLAGS) $< | \301 $(CC) -M -MG $(LIBCPPFLAGS) $(LIBCFLAGS) $< | \ 285 302 sed -e 's@^\(.*\)\.o:@$*.ld $*.lo: Makefile '`dirname $*.ld`/Module.mk' @' > $@ 286 303
