File: Makefile

package info (click to toggle)
cabber 0.4.0-test5-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 172 kB
  • ctags: 100
  • sloc: ansic: 1,421; makefile: 82
file content (55 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (2)
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
# cabber Makefile
#
#

DESTDIR=

BIN=$(DESTDIR)/usr/bin

CC = gcc
LIBS = -lncurses

CFLAGS = -g3 -Wall
LDFLAGS = 

all: cabber

cabber: cabber.o list.o socket.o parsecfg.o server.o server.o keyb.o screen.o utf8.o
	$(CC) $(CFLAGS) -o cabber cabber.o list.o socket.o parsecfg.o server.o \
	keyb.o screen.o utf8.o $(LDFLAGS) $(LIBS)

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

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

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

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

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

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

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

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

clean:
	rm -f *.o *~ cabber

mrproper: clean
	rm -f Makefile config.*

install: all
	cp -f cabber $(BIN)/cabber