-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
34 lines (22 loc) · 1.05 KB
/
Makefile
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
# $Id: Makefile,v 1.8 2005/09/06 21:26:02 roundeye Exp $
INCLUDES = -Iinclude
AR= ar
RANLIB= sh ranlib.sh
CFLAGS = $(INCLUDES) -Wall -g -DVERSION="\"Litestream 1.2\""
LDFLAGS = # -lnsl -lsocket
all: litestream literestream source client server
.depend: $(WILDCARD *.c)
$(CC) -MM $(CFLAGS) -DDEPEND *.c > .depend
client: stream_cli.o stream_sched.o hexdump.o client.o stream_log.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
server: stream_serv.o stream_sched.o hexdump.o server.o stream_log.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
literestream: stream_serv.o stream_sched.o restream.o hexdump.o icy.o yp.o stream_cli.o http.o textutils.o stream_log.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
litestream: stream_serv.o stream_sched.o stream.o hexdump.o icy.o yp.o stream_cli.o http.o textutils.o stream_log.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
source: stream_sched.o stream_cli.o http.o stream_log.o source.o mp3.o playlist.o textutils.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
clean:
rm -f *.o source server client litestream literestream .depend *.core
include .depend