nvramtool: 64bit safe CBFS handling
[coreboot.git] / util / vgabios / Makefile
index e995f007ce2cd297d01c605d1f6e64f5387b7480..0a8dae6d599d8ac62fa37e0815930406eee12b59 100644 (file)
@@ -7,7 +7,12 @@
 #
 
 CC       =  gcc
-CFLAGS   =  -Wall -Iinclude -I../../src/devices/oprom/include/ -O2 -g
+CFLAGS   = -O2 -g -fomit-frame-pointer
+CFLAGS  += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS  += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
+CFLAGS  += -Wstrict-aliasing -Wshadow -Wextra
+
+INCLUDES = -Iinclude -I../../src/devices/oprom/include/
 
 INTOBJS  = int10.o int15.o int16.o int1a.o inte6.o
 X86EMUOBJS  = sys.o decode.o ops.o ops2.o prim_ops.o fpu.o debug.o
@@ -22,12 +27,15 @@ all: testbios
 
 testbios: $(OBJS)
        $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
+
 helper_exec.o: helper_exec.c test.h
 
 clean:
        rm -f *.o *~ testbios
 
 %.o: ../../src/devices/oprom/x86emu/%.c
-       $(CC) $(CFLAGS) -include stdio.h -c -o $@ $^
+       $(CC) $(CFLAGS) $(INCLUDES) -include stdio.h -c -o $@ $^
+
+%.o: %.c
+       $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<