ocarina/Makefile
Bryan Schumaker 4b7762c589 Update Makefile
Now it should compile linking against gtk and gstreamer
2011-08-18 08:26:51 -04:00

27 lines
651 B
Makefile

export CC = g++
export CFLAGS = -Wall -Werror -g -O2
export INCLUDE = -I$(CURDIR)/include
export GTK = `pkg-config --cflags --libs gtk+-2.0`
export GST = `pkg-config --cflags --libs gstreamer-0.10`
export LINK = $(GST) $(GTK)
export BUILD = $(CC) $(CFLAGS) $(INCLUDE)
export SRCDIR = $(CURDIR)
DIRS = libsaria gui
CLEANDIRS = $(DIRS:%=clean-%)
.PHONY: all $(DIRS) clean $(CLEANDIRS)
all: $(DIRS)
$(BUILD) $(shell find . | grep "\.o$$") -o ocarina $(LINK)
$(DIRS):
$(MAKE) -f $(SRCDIR)/scripts/Makefile -C $@
clean: $(CLEANDIRS)
rm -f *.o a.out
$(CLEANDIRS):
$(MAKE) -f $(SRCDIR)/scripts/Makefile -C $(@:clean-%=%) clean