annotate TOOLS/netstream/Makefile @ 10829:bcb370c65ae5

sync
author nicolas
date Sat, 06 Sep 2003 16:33:23 +0000
parents 08496327b7ec
children d051cf39331e
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
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
20 $(CC) $(CFLAGS) -g netstream.o $(MPROOT)/mp_msg.c $(MPROOT)/osdep/shmem.c -o netstream $(MPROOT)/libmpdemux/libmpdemux.a $(MPROOT)/libmpdvdkit2/libmpdvdkit.a $(MPROOT)/libvo/aclib.o $(MPROOT)/libmpcodecs/img_format.o $(MPROOT)/libao2/afmt.o $(MPROOT)/sub_cc.o $(MPROOT)/m_option.o $(MPROOT)/m_struct.o $(MPROOT)/subreader.o $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
21
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
22 clean:
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
23 rm -f *.o *.a *~
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
24
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
25 distclean:
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
26 rm -f test Makefile.bak *.o *.a *~ .depend
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
27
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
28 dep: depend
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
29
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
30 depend:
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
31 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
32
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
33 #
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
34 # include dependency files if they exist
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
35 #
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
36 ifneq ($(wildcard .depend),)
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
37 include .depend
08496327b7ec A simple netstream server.
albeu
parents:
diff changeset
38 endif