File: Makefile

package info (click to toggle)
pmud 0.10-9.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 404 kB
  • ctags: 257
  • sloc: ansic: 2,984; sh: 486; tcl: 290; makefile: 104; perl: 35
file content (60 lines) | stat: -rw-r--r-- 1,336 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $Id: Makefile,v 1.1.1.1 2001/12/07 11:31:48 sleemburg Exp $
#
# $Log: Makefile,v $
# Revision 1.1.1.1  2001/12/07 11:31:48  sleemburg
# Initial CVS import of the unreleased pmud-0.8 to apmud (new project name
# because of a name clash at sourceforge.net).
#
# Revision 1.5  2000/10/09 14:16:25  stephan
# updated for pmud-0.7.1
#
# Revision 1.4  2000/05/11 14:56:29  stephan
# pmud 0.6 changes
#
# Revision 1.3  2000/03/09 12:54:35  stephan
# added tcp
#
# Revision 1.2  2000/01/06 13:51:52  stephan
# rm -> rm -f
#
# Revision 1.1  2000/01/06 13:48:19  stephan
# Initial revision
#

CFLAGS = -Wall -O2
PROGS= pmud snooze wakebay fblevel xmouse

all:	$(PROGS)

pmud:	pmud.c pmud.h pmu.h
	$(CC) $(CFLAGS) -o pmud pmud.c

snooze: snooze.c tcp.o tcp.h
	$(CC) $(CFLAGS) -o snooze snooze.c tcp.o

wakebay: wakebay.c
	$(CC) $(CFLAGS) -o wakebay wakebay.c

fblevel: fblevel.c
	$(CC) $(CFLAGS) -o fblevel fblevel.c

xmouse: xmouse.c
	$(CC) $(CLAGS) -o xmouse xmouse.c -lX11

tcp.o: tcp.c tcp.h
	$(CC) $(CFLAGS) -c tcp.c

install:
	install -c pmud /sbin
	install -c snooze /sbin
	install -c wakebay /sbin
	install -c fblevel /sbin
	install -c xmouse /usr/bin
	install -c Batmon /usr/bin
	install -c -D pwrctl /etc/power/pwrctl
	cp pmud.rc /etc/rc.d/init.d/pmud
	ln -s /sbin/snooze /usr/bin/apm
	chkconfig --add pmud

clean:
	rm -f $(PROGS) *.o