# Makefile for AllegroOGG examples


CC=gcc
LFLAGS=-s



CFLAGS=-Wall -O2 -fomit-frame-pointer -finline-functions -ffast-math `pkg-config --cflags allegroOGG`
OUT=example
LIBS=`pkg-config --libs allegroOGG` `allegro-config --libs`



# making of the example
$(OUT): example.o
	$(CC) $(LFLAGS) $(CFLAGS) $< -o $@ $(LIBS)



# compiling of the example
%.o: %.c
	$(CC) -c $(CFLAGS) $< -o $@



clean:
	rm -f example.o $(OUT)
