-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
33 lines (22 loc) · 955 Bytes
/
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
CFLAGS = -g -Wall -W -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
LIBS = -lpthread -lcurl -lm
OBJS = dvb2dvb.o psi_read.o psi_create.o crc32.o json.o parse_config.o ringbuffer.o
all: dvb2dvb
dvb2dvb: $(OBJS)
$(CC) $(CFLAGS) $(LIBS) -o dvb2dvb $(OBJS)
dvb2dvb.o: dvb2dvb.c dvb2dvb.h psi_read.h psi_create.h crc32.h ringbuffer.h
$(CC) $(CFLAGS) -c -o dvb2dvb.o dvb2dvb.c
psi_create.o: psi_create.c dvb2dvb.h psi_create.h crc32.h
$(CC) $(CFLAGS) -c -o psi_create.o psi_create.c
psi_read.o: psi_read.c dvb2dvb.h psi_read.h crc32.h
$(CC) $(CFLAGS) -c -o psi_read.o psi_read.c
crc32.o: crc32.c crc32.h
$(CC) $(CFLAGS) -c -o crc32.o crc32.c
json.o: json.c json.h
$(CC) $(CFLAGS) -c -o json.o json.c
parse_config.o: parse_config.c parse_config.h
$(CC) $(CFLAGS) -c -o parse_config.o parse_config.c
ringbuffer.o: ringbuffer.c ringbuffer.h
$(CC) $(CFLAGS) -c -o ringbuffer.o ringbuffer.c
clean:
rm -f dvb2dvb $(OBJS) *~