forked from NIMk/IvySync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring of the build system to produce multiple binaries:
this way single components can drop library dependencies, which makes it better for embedded installations, for instance having the synced player without installing X
- Loading branch information
Showing
9 changed files
with
210 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,7 @@ | ||
# 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. -Ixmlrpc++ -Wall -O2 -fomit-frame-pointer -ffast-math | ||
|
||
|
||
|
||
|
||
LIBS = xmlrpc++/libxmlrpc++.a -lpthread -lssl | ||
|
||
IVYSYNC_OBJ = decoder.o thread.o linklist.o utils.o cmdline.o xmlrpc.o | ||
|
||
all: xmlrpc ivysync ivysync-nox | ||
|
||
xmlrpc: | ||
cd xmlrpc++ && $(MAKE) | ||
|
||
ivysync: $(IVYSYNC_OBJ) gui.o | ||
$(CPP) $(CPPFLAGS) -o ivysync $(IVYSYNC_OBJ) $(LIBS) $(GTKLIBS) | ||
|
||
ivysync-nox: $(IVYSYNC_OBJ) | ||
$(CPP) $(CPPFLAGS) -o ivysync-nox $(IVYSYNC_OBJ) $(LIBS) | ||
|
||
|
||
#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 ivysync-gtk xmlrpc++/*.o xmlrpc++/*.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 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 $ | ||
|
||
|
||
CPP = g++ | ||
LINKER = ld | ||
|
||
CPPFLAGS = -I. -Wall -O2 -fomit-frame-pointer -ffast-math | ||
|
||
|
||
IVYSYNC_OBJ = decoder.o thread.o linklist.o utils.o cmdline.o | ||
|
||
all: ivysync-nox | ||
|
||
ivysync-nox: $(IVYSYNC_OBJ) | ||
$(CPP) $(CPPFLAGS) -o ivysync-nox $(IVYSYNC_OBJ) -lpthread | ||
rm -f *.o | ||
|
||
#make clean | ||
clean: | ||
rm -rf *.o *~ ivysync-nox | ||
|
||
install: ivysync-nox | ||
install ivysync-nox /usr/local/bin | ||
|
||
# generic make rules | ||
#%: %.c | ||
# $(CC) $(CFLAGS) -o $@ $< $(LIBS) | ||
#%.o: %.c | ||
# $(CC) $(CFLAGS) -c -o $@ $< | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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 $ | ||
|
||
|
||
CPP = g++ | ||
LINKER = ld | ||
|
||
GTKFLAGS = -DWITH_GUI `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) | ||
|
||
|
||
|
||
|
||
IVYSYNC_OBJ = decoder.o thread.o linklist.o utils.o cmdline.o gui.o | ||
|
||
all: ivysync-gtk | ||
|
||
ivysync-gtk: $(IVYSYNC_OBJ) | ||
$(CPP) $(CPPFLAGS) -o ivysync-gtk $(IVYSYNC_OBJ) $(GTKLIBS) -lpthread | ||
rm -f *.o | ||
|
||
install: ivysync-gtk | ||
install ivysync-gtk /usr/local/bin | ||
|
||
# generic make rules | ||
#%: %.c | ||
# $(CC) $(CFLAGS) -o $@ $< $(LIBS) | ||
#%.o: %.c | ||
# $(CC) $(CFLAGS) -c -o $@ $< | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 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 $ | ||
|
||
|
||
CPP = g++ | ||
LINKER = ld | ||
|
||
|
||
# debugging flags: | ||
#CPPFLAGS = -I. -Ixmlrpc++ -Wall -g -ggdb $(GTKFLAGS) | ||
# optimized flags: | ||
|
||
CPPFLAGS = -I. -Ixmlrpc++ -Wall -O2 -fomit-frame-pointer -ffast-math -DWITH_XMLRPC | ||
|
||
|
||
|
||
|
||
LIBS = xmlrpc++/libxmlrpc++.a -lpthread -lssl | ||
|
||
IVYSYNC_OBJ = decoder.o thread.o linklist.o utils.o cmdline.o xmlrpc.o | ||
|
||
all: xmlrpc ivysync-rpc | ||
|
||
xmlrpc: | ||
cd xmlrpc++ && $(MAKE) | ||
|
||
ivysync-rpc: $(IVYSYNC_OBJ) | ||
$(CPP) $(CPPFLAGS) -o ivysync-rpc $(IVYSYNC_OBJ) $(LIBS) | ||
rm -f *.o | ||
|
||
install: ivysync-rpc | ||
install ivysync-rpc /usr/local/bin | ||
|
||
# generic make rules | ||
#%: %.c | ||
# $(CC) $(CFLAGS) -o $@ $< $(LIBS) | ||
#%.o: %.c | ||
# $(CC) $(CFLAGS) -c -o $@ $< | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
|
||
echo | ||
echo | ||
|
||
echo "IvySync consists of different applications to manipulate and play" | ||
echo "syncstarted videos on multiple channels. First make sure all your" | ||
echo "dependencies are in place (-devel packages on your distribution)" | ||
echo "then choose below what to compile:" | ||
|
||
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 | ||
|
||
echo "press a number and then [enter]" | ||
read -s sel | ||
|
||
|
||
case $sel in | ||
1) | ||
make -f Makefile.player | ||
;; | ||
2) | ||
make -f Makefile.playlist | ||
;; | ||
3) | ||
make -f Makefile.xmlrpc | ||
;; | ||
4) | ||
make -f Makefile.player | ||
make -f Makefile.playlist | ||
make -f Makefile.xmlrpc | ||
;; | ||
*) | ||
echo "invalid selection." | ||
;; | ||
esac | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters