chiark / gitweb /
fix warnings
[nntp-merge-chiark.git] / Makefile
index 644accbb1ffce405d2c544ccb6245cb1aecff123..2b3767e80a4e3b0062c7c8560d5a02dbbebbe494 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,17 @@
-CFLAGS= -Wall -Wwrite-strings -Wpointer-arith -Wnested-externs \
+CFLAGS= -Wall -Wwrite-strings -Wpointer-arith -Wnested-externs -Wno-format-overflow \
        -Wmissing-declarations -Wmissing-prototypes -O3 -g
 # -DDEBUG
 LDFLAGS= -s
 LIBS= -lident
 
+INSTALL=install
+
 all:           nntp-merge md5cookie1way nnrpwrap nyxpostrun
 
+install:
+               $(INSTALL) -m 755 nntp-merge nnrpwrap /usr/local/sbin/
+               $(INSTALL) -m 755 md5cookie1way /usr/local/bin/
+
 nntp-merge:    main.o post.o config.o md5.o
                $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)