summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2008-09-09 14:02:45 (GMT)
committer Jaromil <jaromil@dyne.org>2008-09-09 14:02:45 (GMT)
commit081a150f3cadaa69c81a563061b3dd4f117c2734 (patch)
tree77d558cd3173a370cb9eaf760f4d6fecab5ab220
parentee4ebf12ec863bfbb31d62383058cc97e5f8ad35 (diff)
build system for the network udp-lite syncstarter
-rw-r--r--Makefile55
-rw-r--r--Makefile.udplite22
-rwxr-xr-xcompile.sh7
3 files changed, 36 insertions, 48 deletions
diff --git a/Makefile b/Makefile
index 86d556e..c6c82fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,50 +1,11 @@
-# We don't need kludgy automatizations here,
-# let's use a simple Makefile.
-# Just tweak the values below to fix your paths
-#
-# $Id: Makefile 60 2004-11-12 15:40:18Z jaromil $
+all:
+ # to build run the compile.sh script
-
-CPP = g++
-LINKER = ld
-
-GTKFLAGS = `pkg-config --cflags gtk+-2.0`
-GTKLIBS = `pkg-config --libs gtk+-2.0`
-
-# debugging flags:
-#CPPFLAGS = -I. -Ixmlrpc++ -Wall -g -ggdb $(GTKFLAGS)
-# optimized flags:
-CPPFLAGS = -I. -Wall -O2 -fomit-frame-pointer -ffast-math $(GTKFLAGS)
-
-
-
-
-LIBS = -lpthread
-
-IVYSYNC_OBJ = decoder.o thread.o linklist.o utils.o cmdline.o gui.o udpliteserver.o
-
-all: ivysync udptest udpbroadcast
-
-ivysync: $(IVYSYNC_OBJ)
- $(CPP) $(CPPFLAGS) -o ivysync $(IVYSYNC_OBJ) $(LIBS) $(GTKLIBS)
-
-udptest: udpliteserver.o utils.o udptest.o thread.o
- $(CPP) $(CPPFLAGS) -o udptest udpliteserver.o utils.o udptest.o thread.o -lpthread
-
-udpbroadcast: udpbroadcast.o
- $(CPP) $(CPPFLAGS) -o udpbroadcast udpbroadcast.o
-
-#make clean
clean:
- rm -rf *.o *~ ivysync
-
-install: ivysync
- install ivysync /usr/local/bin
-
-# generic make rules
-#%: %.c
-# $(CC) $(CFLAGS) -o $@ $< $(LIBS)
-#%.o: %.c
-# $(CC) $(CFLAGS) -c -o $@ $<
-
+ rm -f *.a *.o *~
+ rm -f \
+ ivysync-nox \
+ ivysync-rpc xmlrpc++/*.o xmlrpc++/*.a \
+ ivysync-gtk \
+ ivysync-udp udpbroadcast
diff --git a/Makefile.udplite b/Makefile.udplite
new file mode 100644
index 0000000..98fa85e
--- /dev/null
+++ b/Makefile.udplite
@@ -0,0 +1,22 @@
+CPP = g++
+LINKER = ld
+
+# debugging flags:
+#CPPFLAGS = -I. -Ixmlrpc++ -Wall -g -ggdb $(GTKFLAGS)
+# optimized flags:
+CPPFLAGS = -I. -Wall -O2 -fomit-frame-pointer -ffast-math -DWITH_UDP
+
+LIBS = -lpthread
+
+IVYSYNC_OBJ = decoder.o thread.o linklist.o utils.o cmdline.o udpliteserver.o
+
+all: ivysync-udp udpbroadcast
+
+ivysync-udp: $(IVYSYNC_OBJ)
+ $(CPP) $(CPPFLAGS) -o ivysync-udp $(IVYSYNC_OBJ) $(LIBS)
+
+udptest: udpliteserver.o utils.o udptest.o thread.o
+ $(CPP) $(CPPFLAGS) -o udptest udpliteserver.o utils.o udptest.o thread.o -lpthread
+
+udpbroadcast: udpbroadcast.o
+ $(CPP) $(CPPFLAGS) -o udpbroadcast udpbroadcast.o
diff --git a/compile.sh b/compile.sh
index 9b82ae7..cce8ad0 100755
--- a/compile.sh
+++ b/compile.sh
@@ -13,7 +13,8 @@ echo
echo "1 - Standalone player - playback configured playlists"
echo "2 - Playlist editor - graphical interface for playlists"
echo "3 - XMLRPC daemon - remote controlled player daemon"
-echo "4 - ALL of the above"
+echo "4 - UDP-Lite daemon - network syncstart of multiple machines"
+echo "5 - ALL of the above"
echo
@@ -32,9 +33,13 @@ case $sel in
make -f Makefile.xmlrpc
;;
4)
+ make -f Makefile.udplite
+ ;;
+ 5)
make -f Makefile.player
make -f Makefile.playlist
make -f Makefile.xmlrpc
+ make -f Makefile.udplite
;;
*)
echo "invalid selection."