summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-07-25 15:20:22 +0200
committerHarald Hoyer <harald@redhat.com>2012-07-25 15:20:22 +0200
commite045e1f386b2e44e9be88ea53f45090dfc7e095d (patch)
treef62d6b603fcb704c3f2e7cbb7f9a722de3cf0bd0 /Makefile
parentbf7883ebcaccc0bf95303098e36896cc4872d468 (diff)
downloaddracut-e045e1f386b2e44e9be88ea53f45090dfc7e095d.tar.gz
dracut-e045e1f386b2e44e9be88ea53f45090dfc7e095d.tar.bz2
dracut-e045e1f386b2e44e9be88ea53f45090dfc7e095d.zip
Makefile: honor CFLAGS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 548952dc..a109ef0e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ pkglibdir ?= ${libdir}/dracut
sysconfdir ?= ${prefix}/etc
bindir ?= ${prefix}/bin
mandir ?= ${prefix}/share/man
+CFLAGS ?= -std=gnu99 -O2 -g -Wall
man1pages = lsinitrd.1
@@ -46,7 +47,7 @@ DRACUT_INSTALL_HEADER = \
install/util.h
dracut-install: $(DRACUT_INSTALL_SOURCE) $(DRACUT_INSTALL_HEADER)
- gcc -std=gnu99 -O2 -g -Wall -o dracut-install $(DRACUT_INSTALL_SOURCE)
+ gcc $(CFLAGS) -o dracut-install $(DRACUT_INSTALL_SOURCE)
indent:
indent -i8 -nut -br -linux -l120 install/dracut-install.c