22 |
TARGETS = grubby |
TARGETS = grubby |
23 |
OBJECTS = grubby.o |
OBJECTS = grubby.o |
24 |
|
|
25 |
CFLAGS := $(CFLAGS) $(RPM_OPT_FLAGS) -DVERSION='"$(VERSION)"' -Wall -Werror |
CC = gcc |
26 |
|
CFLAGS += $(RPM_OPT_FLAGS) -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb |
27 |
LDFLAGS := |
LDFLAGS := |
28 |
|
|
29 |
grubby_LIBS = -lblkid -lpopt |
grubby_LIBS = -lblkid -lpopt |
32 |
|
|
33 |
all: grubby |
all: grubby |
34 |
|
|
35 |
|
debug : clean |
36 |
|
$(MAKE) CFLAGS="${CFLAGS} -DDEBUG=1" all |
37 |
|
|
38 |
|
%.o : %.c |
39 |
|
$(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c -o $@ $< |
40 |
|
|
41 |
test: all |
test: all |
42 |
@export TOPDIR=$(TOPDIR) |
@export TOPDIR=$(TOPDIR) |
43 |
@./test.sh |
@./test.sh |