--- trunk/grubby/Makefile 2011/06/03 21:09:58 1339 +++ trunk/grubby/Makefile 2012/02/17 23:23:07 1694 @@ -22,7 +22,8 @@ TARGETS = grubby OBJECTS = grubby.o -CFLAGS := $(CFLAGS) $(RPM_OPT_FLAGS) -DVERSION='"$(VERSION)"' -Wall -Werror +CC = gcc +CFLAGS += $(RPM_OPT_FLAGS) -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function LDFLAGS := grubby_LIBS = -lblkid -lpopt @@ -31,6 +32,12 @@ all: grubby +debug : clean + $(MAKE) CFLAGS="${CFLAGS} -DDEBUG=1" all + +%.o : %.c + $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c -o $@ $< + test: all @export TOPDIR=$(TOPDIR) @./test.sh