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