Magellan Linux

Diff of /tags/grubby-8_20/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1339 by niro, Fri Jun 3 21:09:58 2011 UTC revision 1694 by niro, Fri Feb 17 23:23:07 2012 UTC
# Line 22  VERSION=$(shell cat VERSION) Line 22  VERSION=$(shell cat VERSION)
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
27  LDFLAGS :=  LDFLAGS :=
28    
29  grubby_LIBS = -lblkid -lpopt  grubby_LIBS = -lblkid -lpopt
# Line 31  mandir = usr/share/man Line 32  mandir = usr/share/man
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

Legend:
Removed from v.1339  
changed lines
  Added in v.1694