CFLAGS =-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -g
-OBJS = record-dvb.o http.o mcast.o common.o
+COMMONOBJS = http.o mcast.o common.o
+OBJS = record-dvb.o dump-mcast.o $(COMMONOBJS)
-all: record-dvb
+all: record-dvb dump-mcast
DEPEND=$(OBJS:.o=.d)
-include $(DEPEND)
-record-dvb: $(OBJS)
+record-dvb: record-dvb.o $(COMMONOBJS)
+
+dump-mcast: dump-mcast.o $(COMMONOBJS)
clean:
rm -f record-dvb $(OBJS) $(DEPEND)