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 osd-alsa
9 osdc: osdc.o util.o client.o
10 osd-batt: osd-batt.o util.o client.o
11 osd-alsa: osd-alsa.o util.o client.o
13 osdd.o: CFLAGS+=$(shell xosd-config --cflags)
14 osdd: LDLIBS+=$(shell xosd-config --libs)
17 osd-batt: LDLIBS+=-lX11
19 osd-alsa.o: CFLAGS+=$(shell pkg-config --cflags alsa)
20 osd-alsa: LDLIBS+=$(shell pkg-config --libs alsa) -lX11
23 rm -f *~ *.o TAGS core osdd osdc osd-batt osd-alsa
28 git archive --format=tar --prefix=osdd-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
29 scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
30 ssh jw "cd www && bin/release-prog osdd $(VERSION)"
31 mv $(ARCHIVE) ~/archives/mj/