]> mj.ucw.cz Git - siplog.git/blob - Makefile
make release
[siplog.git] / Makefile
1 VERSION=1.0
2 ARCHIVE=siplog-$(VERSION).tar.gz
3
4 CC=gcc
5 LD=gcc
6 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 -fPIC
7 CPPFLAGS+=-I/tmp/ulogd-1.23/include -I/tmp/ulogd-1.23/libipulog/include
8
9 all: siplog.so
10
11 siplog.so: siplog.o
12         $(LD) -shared $^ -o $@
13
14 clean:
15         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
16         rm -f siplog.so
17
18 release:
19         git archive --format=tar --prefix=siplog-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
20         scp $(ARCHIVE) atrey:~ftp/pub/local/mj/net/
21         ssh jw "cd www && bin/release-prog siplog $(VERSION)"
22         mv $(ARCHIVE) ~/archives/mj/