annotate TOOLS/netstream/Makefile @ 13221:e474afac817f

- sync 1.45 - break long lines - remove trailing whitespace
author wight
date Wed, 01 Sep 2004 19:42:51 +0000
parents 43a231d89ef0
children d5f5ff34e1ed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9856
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
1
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
2 MPROOT=../..
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
3
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
4 include $(MPROOT)/config.mak
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
5
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
6 INCLUDE = -I$(MPROOT) -I$(MPROOT)/loader $(EXTRA_INC)
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
7 CFLAGS = $(OPTFLAGS) $(INCLUDE)
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
8
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
9 .SUFFIXES: .c .cpp .o
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
10
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
11 # .PHONY: all clean
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
12
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
13 all: netstream
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
14
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
15 .c.o:
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
16 $(CC) -c $(CFLAGS) -o $@ $<
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
17
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
18
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
19 netstream: $(MPROOT)/libmpdemux/libmpdemux.a netstream.o
12739
43a231d89ef0 Bandaid linking fix, somebody should do this properly some day.
diego
parents: 11964
diff changeset
20 # FIXME: linking is a mess that should be fixed properly some day
43a231d89ef0 Bandaid linking fix, somebody should do this properly some day.
diego
parents: 11964
diff changeset
21 # it does not work with either GUI, live.com or libavformat enabled
43a231d89ef0 Bandaid linking fix, somebody should do this properly some day.
diego
parents: 11964
diff changeset
22 $(CC) $(CFLAGS) netstream.o -o netstream $(MPROOT)/libmpdemux/libmpdemux.a $(MPROOT)/libmpdvdkit2/libmpdvdkit.a $(MPROOT)/libmpcodecs/native/minilzo.o $(MPROOT)/libvo/aclib.o $(MPROOT)/libmpcodecs/img_format.o $(MPROOT)/liba52/liba52.a $(MPROOT)/libao2/afmt.o $(MPROOT)/m_option.o $(MPROOT)/m_struct.o $(MPROOT)/subreader.o $(MPROOT)/mp_msg.o $(MPROOT)/osdep/shmem.o $(MPROOT)/osdep/timer-*.o $(MPROOT)/osdep/strl.o $(VORBIS_LIB) $(CDPARANOIA_LIB) $(Z_LIB) $(GIF_LIB) $(SMBSUPPORT_LIB) $(LIVE_LIBS) -lpthread $(COMMON_LIBS) -lm
9856
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
23
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
24 clean:
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
25 rm -f *.o *.a *~
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
26
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
27 distclean:
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
28 rm -f test Makefile.bak *.o *.a *~ .depend
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
29
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
30 dep: depend
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
31
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
32 depend:
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
33 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
34
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
35 #
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
36 # include dependency files if they exist
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
37 #
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
38 ifneq ($(wildcard .depend),)
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
39 include .depend
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
40 endif