Changeset 1574
- Timestamp:
- Aug 14, 2012 11:36:11 PM (9 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Makefile (modified) (3 diffs)
-
util/ich_descriptors_tool/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1567 r1574 27 27 # make CC=i586-pc-msdosdjgpp-gcc 28 28 # You may have to specify STRIP/AR/RANLIB as well. 29 # 30 # Note for anyone editing this Makefile: gnumake will happily ignore any 31 # changes in this Makefile to variables set on the command line. 29 32 CC ?= gcc 30 33 STRIP ?= strip … … 84 87 CPPFLAGS += -I../libgetopt 85 88 # DJGPP has odd uint*_t definitions which cause lots of format string warnings. 86 C PPFLAGS += -Wno-format89 CFLAGS += -Wno-format 87 90 # FIXME Check if we can achieve the same effect with -L../libgetopt -lgetopt 88 91 LIBS += ../libgetopt/libgetopt.a … … 120 123 EXEC_SUFFIX := .exe 121 124 # MinGW doesn't have the ffs() function, but we can use gcc's __builtin_ffs(). 122 C FLAGS += -Dffs=__builtin_ffs125 CPPFLAGS += -Dffs=__builtin_ffs 123 126 # libusb-win32/libftdi stuff is usually installed in /usr/local. 124 127 CPPFLAGS += -I/usr/local/include -
trunk/util/ich_descriptors_tool/Makefile
r1567 r1574 1 CC ?= gcc 1 # 2 # This file is part of the flashrom project. 3 # 4 # This Makefile works standalone, but it is usually called from the main 5 # Makefile in the flashrom directory. 2 6 3 7 PROGRAM=ich_descriptors_tool … … 7 11 SHAREDSRC = ich_descriptors.c 8 12 SHAREDSRCDIR = ../.. 13 # If your compiler spits out excessive warnings, run make WARNERROR=no 14 # You shouldn't have to change this flag. 15 WARNERROR ?= yes 9 16 10 17 SRC = $(wildcard *.c) 11 18 12 CFLAGS += -Wall 13 CFLAGS += -MMD -MP -MF $(DEPPATH)/$(@F).d 14 # enables functions that populate the descriptor structs from plain binary dumps 15 CFLAGS += -D ICH_DESCRIPTORS_FROM_DUMP 16 CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) 19 CC ?= gcc 17 20 21 # If the user has specified custom CFLAGS, all CFLAGS settings below will be 22 # completely ignored by gnumake. 23 CFLAGS ?= -Os -Wall -Wshadow 18 24 ifeq ($(TARGET_OS), DOS) 19 25 # DJGPP has odd uint*_t definitions which cause lots of format string warnings. 20 26 CFLAGS += -Wno-format 21 27 endif 28 ifeq ($(WARNERROR), yes) 29 CFLAGS += -Werror 30 endif 31 32 33 CPPFLAGS += -MMD -MP -MF $(DEPPATH)/$(@F).d 34 # enables functions that populate the descriptor structs from plain binary dumps 35 CPPFLAGS += -D ICH_DESCRIPTORS_FROM_DUMP 36 CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) 22 37 23 38 OBJ = $(OBJATH)/$(SRC:%.c=%.o) … … 28 43 29 44 $(OBJ): $(OBJATH)/%.o : %.c 30 $(CC) $(CFLAGS) -o $@ -c $<45 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< 31 46 32 47 # this enables us to share source files without simultaneously sharing .o files 33 48 # with flashrom, which would lead to unexpected results (w/o running make clean) 34 49 $(SHAREDOBJ): $(OBJATH)/%.o : $(SHAREDSRCDIR)/%.c 35 $(CC) $(CFLAGS) -o $@ -c $<50 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< 36 51 37 52 $(PROGRAM)$(EXEC_SUFFIX): $(OBJ) $(SHAREDOBJ)
Note: See TracChangeset
for help on using the changeset viewer.
