]> mj.ucw.cz Git - osdd.git/blob - Makefile
Added `release' target and released as version 1.0
[osdd.git] / Makefile
1 VERSION=1.0
2 ARCHIVE=osdd-$(VERSION).tar.gz
3
4 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
5
6 all: osdd osdc osd-batt
7
8 osdd: osdd.o util.o
9 osdc: osdc.o util.o client.o
10 osd-batt: osd-batt.o util.o client.o
11
12 osdd.o: CFLAGS+=$(shell xosd-config --cflags)
13 osdd: LDFLAGS+=$(shell xosd-config --libs)
14
15 osdc: LDFLAGS+=-lX11
16 osd-batt: LDFLAGS+=-lX11
17
18 clean:
19         rm -f *~ *.o TAGS core osdd osdc
20
21 release:
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/