in24/in32/fl32 little/big-endian QuickTime PCM audio support
[mplayer/glamo.git] / TOOLS / netstream / Makefile
blob289fb83b059223adc238839ff4eb80367f3305a2
2 MPROOT=../..
4 include $(MPROOT)/config.mak
6 INCLUDE = -I$(MPROOT) -I$(MPROOT)/loader $(EXTRA_INC)
7 CFLAGS = $(OPTFLAGS) $(INCLUDE)
9 .SUFFIXES: .c .cpp .o
11 # .PHONY: all clean
13 all: netstream
15 .c.o:
16 $(CC) -c $(CFLAGS) -o $@ $<
19 # FIXME: linking is a mess that should be fixed properly some day
20 # it does not work with either GUI, live.com or libavformat enabled
21 DEPS = $(MPROOT)/libmpdemux/libmpdemux.a \
22 $(MPROOT)/libmpdvdkit2/libmpdvdkit.a \
23 $(MPROOT)/libmpcodecs/native/minilzo.o \
24 $(MPROOT)/libvo/aclib.o \
25 $(MPROOT)/libmpcodecs/img_format.o \
26 $(MPROOT)/liba52/liba52.a \
27 $(MPROOT)/m_option.o \
28 $(MPROOT)/m_struct.o \
29 $(MPROOT)/subreader.o \
30 $(MPROOT)/mp_msg.o \
31 $(MPROOT)/osdep/shmem.o \
32 $(MPROOT)/osdep/timer-*.o \
33 $(MPROOT)/osdep/strl.o \
34 $(VORBIS_LIB) \
35 $(CDPARANOIA_LIB) \
36 $(Z_LIB) \
37 $(GIF_LIB) \
38 $(SMBSUPPORT_LIB) \
39 $(LIVE_LIBS) \
40 $(ARCH_LIB) \
41 $(COMMON_LIBS) \
42 -lm \
44 ifeq ($(TARGET_WIN32),yes)
45 DEPS += $(MPROOT)/osdep/glob-win.o $(WIN32_LIB) -lwsock32
46 endif
48 netstream: $(MPROOT)/libmpdemux/libmpdemux.a netstream.o
50 $(CC) $(CFLAGS) netstream.o -o netstream $(DEPS)
52 clean:
53 rm -f *.o *.a *~
55 distclean: clean
56 rm -f .depend test
58 dep: depend
60 depend:
61 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend
64 # include dependency files if they exist
66 ifneq ($(wildcard .depend),)
67 include .depend
68 endif