Fix warnings in coreboot utilities.
[coreboot.git] / util / inteltool / Makefile
index 6a011732d9b1394b958fc7f9feb3e25792ff0ce3..d7540059beb6973e3a81edaef5e7a87b81826cb3 100644 (file)
@@ -42,7 +42,7 @@ endif
 all: pciutils dep $(PROGRAM)
 
 $(PROGRAM): $(OBJS)
-       $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
+       $(CC) $(CFLAGS) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
 
 clean:
        rm -f $(PROGRAM) *.o *~
@@ -59,7 +59,7 @@ pciutils:
                   printf "struct pci_access *pacc;\n";         \
                   printf "int main(int argc, char **argv)\n";  \
                   printf "{ pacc = pci_alloc(); return 0; }\n"; ) > .test.c )
-       @$(CC) $(CFLAGS) $(LDFLAGS) .test.c -o .test &>/dev/null &&       \
+       @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) &>/dev/null &&       \
                printf "found.\n" || ( printf "not found.\n\n";           \
                printf "Please install pciutils-devel and zlib-devel.\n"; \
                printf "See README for more information.\n\n";            \