This commit was generated by cvs2svn to compensate for changes in r45,
[pingofdeath.git] / Makefile
1 # Makefile for building and installing the application
2 #   level tools for the Planetlab "ping of death" feature.
3 #
4 # Targets are:
5 # all: builds all of the components
6 # install: installes the tools into the planetlab bin directory
7 # test: runs the tests on the current machine
8 #
9
10 ALLBUILD=pl-poddoit pod ipod-2.0.tar.gz
11 PLBIN=/usr/local/planetlab/bin/
12 INIT=/etc/init.d/
13
14 all: $(ALLBUILD)
15
16 pod: pod.src disable_pod.sh  enable_pod.sh  status_pod.sh
17         ./shell_include --source pod.src --destination pod 
18
19 ipod-2.0.tar.gz: pod ipod.spec
20         mkdir ipod-2.0
21         cp ipod.spec disable_pod.sh enable_pod.sh INTEL_LICENSE.txt ipod.patch \
22         Makefile pl-podcntl pl-poddoit.c pl-podset pl-podzap pod.src \
23         README shell_include status_pod.sh test-pod ipod-2.0
24         tar cvfz ipod-2.0.tar.gz ipod-2.0
25         rm -rf ipod-2.0
26
27 pl-poddoit: pl-poddoit.c
28         gcc pl-poddoit.c -o pl-poddoit
29
30 install: all
31         cp pl-poddoit $(PLBIN)
32         chmod 555 $(PLBIN)/pl-poddoit
33         cp pod $(INIT)
34         chmod 555 $(INIT)/pod
35
36 clean:
37         rm -f pod pl-poddoit ipod-2.0.tar.gz