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
8 osdd: osdd.o util.o display.o
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: LDLIBS+=$(shell pkg-config --libs xft) -l Xext
16 osd-batt: LDLIBS+=-lX11
18 osd-alsa.o: CFLAGS+=$(shell pkg-config --cflags alsa)
19 osd-alsa: LDLIBS+=$(shell pkg-config --libs alsa) -lX11
21 display.o: CFLAGS+=$(shell pkg-config --cflags xft)
24 rm -f *~ *.o TAGS core osdd osdc osd-batt osd-alsa
29 git archive --format=tar --prefix=osdd-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
30 scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
31 ssh jw "cd www && bin/release-prog osdd $(VERSION)"
32 mv $(ARCHIVE) ~/archives/mj/