Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kmatheussen committed Oct 23, 2011
0 parents commit 5220dc0
Show file tree
Hide file tree
Showing 11 changed files with 5,600 additions and 0 deletions.
374 changes: 374 additions & 0 deletions COPYING

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@

DESTDIR =
prefix = /usr/local
bindir = $(prefix)/bin

VERSION=0.9.57

CC=gcc
CPP=g++

OPTIMIZE=-O3 -mtune=native
#OPTIMIZE=-O0 -g

COMPILEFLAGS=$(OPTIMIZE) -DVERSION=\"$(VERSION)\" -Wall
LINKFLAGS=-ljack -lsndfile -lm -lpthread

targets = jack_capture jack_capture_gui2


all: check_dependencies jack_capture jack_capture_gui2

install: $(targets)
mkdir -p $(DESTDIR)$(bindir)
install -m755 $(targets) $(DESTDIR)$(bindir)

uninstall:
rm $(DESTDIR)$(bindir)/jack_capture
rm $(DESTDIR)$(bindir)/jack_capture_gui2

check_dependencies:
@echo
@echo "Checking dependencies: "
which bash
which tr
which install
which pkg-config
which $(CC)
which $(CPP)
$(CC) -E testsndfile.c >/dev/null
@echo "All seems good "
@echo

dist: clean
rm -fr /tmp/jack_capture-$(VERSION)
rm -fr jack_capture-$(VERSION)
mkdir /tmp/jack_capture-$(VERSION)
cp -a * /tmp/jack_capture-$(VERSION)/
mv /tmp/jack_capture-$(VERSION) .
tar cvf jack_capture-$(VERSION).tar jack_capture-$(VERSION)
gzip jack_capture-$(VERSION).tar
marcel_upload jack_capture-$(VERSION).tar.gz
ls -la jack_capture-$(VERSION)
rm -fr jack_capture-$(VERSION)


jack_capture: setformat.c jack_capture.c vringbuffer.c Makefile das_config.h config_flags
$(CC) $(COMPILEFLAGS) jack_capture.c vringbuffer.c -o jack_capture $(LINKFLAGS) `cat config_flags`


jack_capture_gui2: jack_capture_gui2.cpp
$(CPP) $(OPTIMIZE) jack_capture_gui2.cpp `pkg-config --libs --cflags gtk+-2.0` -o jack_capture_gui2

config_flags: Makefile das_config.h
cat das_config.h |grep COMPILEFLAGS|sed s/\\/\\/COMPILEFLAGS// >config_flags

das_config.h: gen_das_config_h.sh
bash gen_das_config_h.sh >das_config.h
@echo
@echo "jack_capture was configured with the following options:"
@echo "------------------------------"
@cat das_config.h
@echo "------------------------------"
@echo

setformat.c: gen_setformat_c.sh
bash gen_setformat_c.sh >setformat.c


clean:
rm -f *~ jack_capture jack_capture_gui2 config_flags *.wav *.flac *.ogg *.mp3 *.au *.aiff *.wavex temp.c* setformat.c* das_config.h* a.out *.gz #*


Loading

0 comments on commit 5220dc0

Please sign in to comment.