File: Makefile

package info (click to toggle)
das-watchdog 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 104 kB
  • ctags: 51
  • sloc: ansic: 494; sh: 60; makefile: 29
file content (28 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

VERSION=0.9.0

FLAGS=-O2 `pkg-config --libs --cflags libgtop-2.0` -Wall -lpthread -DWHICH_XMESSAGE=\"`which xmessage`\"  -DVERSION=\"$(VERSION)\"

TAR=das_watchdog

DIST=$(TAR)-$(VERSION)


all:
	which xmessage
	gcc das_watchdog.c -o das_watchdog $(FLAGS)
	gcc test_rt.c -o test_rt

dist:
	make clean
	rm -fr $(DIST).tar.gz /tmp/$(DIST)
	mkdir /tmp/$(DIST)
	cp -a * /tmp/$(DIST)
	mv /tmp/$(DIST) .
	tar cvf $(DIST).tar $(DIST)
	gzip $(DIST).tar
	marcel_upload $(DIST).tar.gz

clean:
	rm -f das_watchdog test_rt *~