VERSION=1.0 ARCHIVE=siplog-$(VERSION).tar.gz CC=gcc LD=gcc CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 -fPIC CPPFLAGS+=-I/tmp/ulogd-1.23/include -I/tmp/ulogd-1.23/libipulog/include all: siplog.so siplog.so: siplog.o $(LD) -shared $^ -o $@ clean: rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*` rm -f siplog.so release: git tag v$(VERSION) git push --tags git archive --format=tar --prefix=siplog-$(VERSION)/ HEAD | gzip >$(ARCHIVE) scp $(ARCHIVE) atrey:~ftp/pub/local/mj/net/ ssh jw "cd www && bin/release-prog siplog $(VERSION)" mv $(ARCHIVE) ~/archives/mj/