player/Makefile
author Markus Bröker <mbroeker@largo.dyndns.tv>
Sat, 13 Dec 2008 15:57:04 +0100
changeset 1 fd135abaac89
parent 0 06dd3b8d90ad
permissions -rw-r--r--
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/