2 ARCHIVE=osdd-$(VERSION).tar.gz
4 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
6 all: osdd osdc osd-batt
9 osdc: osdc.o util.o client.o
10 osd-batt: osd-batt.o util.o client.o
12 osdd.o: CFLAGS+=$(shell xosd-config --cflags)
13 osdd: LDFLAGS+=$(shell xosd-config --libs)
16 osd-batt: LDFLAGS+=-lX11
19 rm -f *~ *.o TAGS core osdd osdc
22 git archive --format=tar --prefix=osdd-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
23 scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
24 ssh jw "cd www && bin/release-prog osdd $(VERSION)"
25 mv $(ARCHIVE) ~/archives/mj/