changeset 25586:2c25326ad773

Add proper compilation rules for qtx/list and qtx/qtxload and remove silly compilation shell script.
author diego
date Sun, 06 Jan 2008 11:40:49 +0000
parents 233c5bbd1c15
children 938ad61247d5
files loader/Makefile loader/qtx/c.sh
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/loader/Makefile	Sun Jan 06 11:27:07 2008 +0000
+++ b/loader/Makefile	Sun Jan 06 11:40:49 2008 +0000
@@ -35,8 +35,17 @@
 
 CFLAGS+=-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
 
-dshow/test: dshow/test.c $(LIBNAME_COMMON) ../cpudetect.o ../get_path.o ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a
-	$(CC) $(CFLAGS) -o $@ $^ -ltermcap -ldl -lm -lpthread -g -lstdc++
+TEST_OBJS    = $(LIBNAME_COMMON) ../cpudetect.o ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a
+TEST_LDFLAGS = -ltermcap -ldl -lm -lpthread -g
+
+dshow/test: dshow/test.c ../get_path.o $(TEST_OBJS)
+	$(CC) $(CFLAGS) -o $@ $^ $(TEST_LDFLAGS) -lstdc++
+
+qtx/qtxload: qtx/qtxload.c $(TEST_OBJS)
+	$(CC) -o $@ $^ $(TEST_LDFLAGS)
+
+qtx/list: qtx/list.c  $(TEST_OBJS)
+	$(CC) -o $@ $^ $(TEST_LDFLAGS)
 
 clean::
 	rm -f dshow/*.o dshow/*.a dshow/*~
--- a/loader/qtx/c.sh	Sun Jan 06 11:27:07 2008 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-
-gcc qtxload.c ../libloader.a ../../cpudetect.o ../../mp_msg-mencoder.o -ldl -lm -lpthread -g