forked from lecotex/vtuner.apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 1018 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
CFLAGS += -fPIC -DHAVE_DVB_API_VERSION=5 $(DBGFLAGS)
LDFLAGS += -lpthread -lrt
DRIVER = vtuner-dvb-3
default: vtunerd vtunerc
vtuner-dvb-3.o: vtuner-dvb-3.c vtuner-dvb-3.h
$(CC) $(CFLAGS) -c -o vtuner-dvb-3.o vtuner-dvb-3.c
vtunerd: vtunerd.c vtunerd-service.o vtuner-network.o vtuner-utils.o $(DRIVER).o
$(CC) $(CFLAGS) -DBUILDVER="\"$(LOCVER)\"" -DMODFLAG=\"$(MODFLAG)\" -o vtunerd vtuner-network.o vtunerd-service.o $(DRIVER).o vtuner-utils.o vtunerd.c $(LDFLAGS)
vtunerc: vtunerc.c vtuner-network.o vtuner-utils.o
$(CC) $(CFLAGS) -DBUILDVER="\"$(LOCVER)\"" -DMODFLAG=\"$(MODFLAG)\" -o vtunerc vtuner-network.o vtuner-utils.o vtunerc.c $(LDFLAGS)
vtunerd-service.o: vtunerd-service.c vtunerd-service.h
$(CC) $(CFLAGS) -c -o vtunerd-service.o vtunerd-service.c
vtuner-network.o: vtuner-network.c vtuner-network.h
$(CC) $(CFLAGS) -c -o vtuner-network.o vtuner-network.c
vtuner-utils.o: vtuner-utils.c vtuner-utils.h
$(CC) $(CFLAGS) -c -o vtuner-utils.o vtuner-utils.c
clean:
rm -rf *.o vtunerd vtunerc