src/Makefile
changeset 2 6ee2a130dc07
parent 1 fd135abaac89
child 4 be4de85337e5
equal deleted inserted replaced
1:fd135abaac89 2:6ee2a130dc07
     3 MBROLA  = /opt/mbrola/bin/mbrola #
     3 MBROLA  = /opt/mbrola/bin/mbrola #
     4 FESTIVAL= /usr/bin/festival      #
     4 FESTIVAL= /usr/bin/festival      #
     5 INSTDIR = ~/bin                  #
     5 INSTDIR = ~/bin                  #
     6 ##### USER CONFIG ENDS ###########
     6 ##### USER CONFIG ENDS ###########
     7 
     7 
     8    CC	= gcc
     8      CC = gcc
     9 MCFLAGS =  -Wall -O2 -DMBROLA $(shell sdl-config --cflags)
     9 MCFLAGS =  -Wall -O2 -DMBROLA $(shell sdl-config --cflags)
    10 FCFLAGS =  -Wall -O2 -DFESTIVAL $(shell sdl-config --cflags)
    10 FCFLAGS =  -Wall -O2 -DFESTIVAL $(shell sdl-config --cflags)
    11 PCFLAGS =  -Wall -O2 -DPROSER -DLINUX -DWINAPI="" $(shell sdl-config --cflags)
    11 PCFLAGS =  -Wall -O2 -DPROSER -DLINUX -DWINAPI="" $(shell sdl-config --cflags)
    12 INCLUDE = -I../include
    12 INCLUDE = -I../include
    13 LDFLAGS = -Wl,-rpath,lib -L../lib $(shell sdl-config --libs)
    13 LDFLAGS = -Wl,-rpath,lib -L../lib $(shell sdl-config --libs)
    14  DEBUG	= -g -ggdb
    14   DEBUG = -g -ggdb
    15 OBJECTS = \
    15 
    16 	main.o \
    16 OBJECTS  = main.o
    17 	sentence.o \
    17 OBJECTS += sentence.o
    18 	keyboard.o \
    18 OBJECTS += keyboard.o
    19 	thread.o \
    19 OBJECTS += thread.o
    20 	audioplayer.o \
    20 OBJECTS += audioplayer.o
    21 	proser_interface.o \
    21 OBJECTS += proser_interface.o
    22 	mbrola_interface.o \
    22 OBJECTS += mbrola_interface.o
    23 	festival_interface.o
    23 OBJECTS += festival_interface.o
    24 
    24 
    25 .c.o:
    25 .c.o:
    26 	@if [ -f ../lib/libProserGerman.a ]; \
    26 	@if [ -f ../lib/libProserGerman.a ]; \
    27 	then \
    27 	then \
    28 		$(CC) -c $(PCFLAGS) $(INCLUDE) $(DEBUG) -o $@ $<; \
    28 		$(CC) -c $(PCFLAGS) $(INCLUDE) $(DEBUG) -o $@ $<; \