diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-27 11:58:37 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-27 11:58:37 +0000 |
commit | b7ffad3d0ab50709c323a64ef24e7de919033a0a (patch) | |
tree | 88f185fcb98ae029842dfec6f29cfebd13af626b | |
parent | 11caf018fd37afb783ad5aeb6d931f915a520b8b (diff) |
Move common link libs/objects into a variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24243 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | TOOLS/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/TOOLS/Makefile b/TOOLS/Makefile index 469bb606a4..a61fac6511 100644 --- a/TOOLS/Makefile +++ b/TOOLS/Makefile @@ -12,18 +12,19 @@ OBJS = alaw-gen$(EXESUF) \ subrip$(EXESUF) \ # vivodump$(EXESUF) \ +COMMON_LIBS = ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a -ltermcap -lm + all: $(OBJS) subrip$(EXESUF): subrip.c - $(CC) $(CFLAGS) -g -o $@ $< ../vobsub.o ../spudec.o ../mp_msg.o \ + $(CC) $(CFLAGS) -g -o $@ $< ../vobsub.o ../spudec.o \ ../unrarlib.o ../libswscale/libswscale.a ../libavutil/libavutil.a \ - ../libmpcodecs/img_format.o ../mp_fifo.o ../osdep/libosdep.a \ - -ltermcap -lm + ../libmpcodecs/img_format.o $(COMMON_LIBS) #FIXME: Linking is broken, help welcome. vivodump$(EXESUF): vivodump.c - $(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a \ - ../stream/stream.a ../mp_fifo.o ../osdep/libosdep.a -ltermcap -lm + $(CC) $(CFLAGS) -o $@ $< ../libmpdemux/libmpdemux.a \ + ../stream/stream.a $(COMMON_LIBS) fastmemcpybench: fastmemcpybench.c $(CC) $(CFLAGS) -g $< -o fastmem-mmx$(EXESUF) -DNAME=\"mmx\" -DHAVE_MMX @@ -59,10 +60,7 @@ NETSTREAM_DEPS = ../libmpdemux/libmpdemux.a \ ../libavutil/libavutil.a \ ../m_option.o \ ../m_struct.o \ - ../mp_msg.o \ - ../mp_fifo.o \ - ../osdep/libosdep.a \ - -ltermcap -lm \ + $(COMMON_LIBS) ifeq ($(TARGET_WIN32),yes) NETSTREAM_DEPS += -lwsock32 |