Troubleshooting:
* See http://de.gentoo-wiki.com/Mbrola
* txt2pho needs a config file
-> ~/.txt2phorc or /etc/txt2pho
committer: Markus Bröker <mbroeker@largo.homelinux.org>
CC = gcc
CFLAGS = -Wall -O2 -DLINUX -DWINAPI="" $(shell sdl-config --cflags)
INCLUDE= -I../include
LDFLAGS = -Wl,-rpath,lib $(shell sdl-config --libs)
DEBUG = -g -ggdb
TARGET = ../bin/audioplayer
OBJECTS = \
main.o \
audioplayer.o
.c.o:
@$(CC) -c $(CFLAGS) $(INCLUDE) $(DEBUG) -o $@ $<
@echo "CC $<"
all: $(TARGET)
$(TARGET): $(OBJECTS)
@$(CC) $(OBJECTS) $(LDFLAGS) -o $@
@echo "LD OBJECTS -o $@"
.PHONY: clean distclean
clean:
@rm -f *.o *~
@echo "CLEANING $$PWD"
distclean:
@make clean
@rm -f $(TARGET)
@echo "WIPING $$PWD OUT"
install: $(TARGET)
install -m 755 $(TARGET) ~/bin/