summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e33964e..869f0d6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
CC = cc
-CFLAGS = -g -O
+CFLAGS = -g -O -W -Wall
LDFLAGS =
INSTALL = install
+LIBS = -liberty # For xmalloc()
prefix = /usr/local
BINDIR = $(prefix)/bin
MANDIR = $(prefix)/man/man1
@@ -12,7 +13,7 @@ SOURCES = flock.c flock.1 flock.spec Makefile version
all: flock
flock: flock.c version
- $(CC) $(CFLAGS) $(LDFLAGS) -DVERSION=\"$(VERSION)\" -o $@ $<
+ $(CC) $(CFLAGS) $(LDFLAGS) -DVERSION=\"$(VERSION)\" -o $@ $< $(LIBS)
install:
mkdir -m 755 -p $(INSTALLROOT)$(BINDIR) $(INSTALLROOT)$(MANDIR)
@@ -32,4 +33,4 @@ tar:
cp $(SOURCES) flock-$(VERSION)
tar cvvf flock-$(VERSION).tar flock-$(VERSION)
gzip -9 flock-$(VERSION).tar
- rm -rf flock-$(VERSION) \ No newline at end of file
+ rm -rf flock-$(VERSION)