# Make allegro library

CC = @CC@
CCC = @CXX@
srcdir=@srcdir@

CFLAGS = -g -O
CPPOBJ = \
	allegro.cpp.o \
	allegrord.cpp.o \
	allegrowr.cpp.o \
	mfallegro.cpp.o \
	mfmidi.cpp.o \
	strparse.cpp.o \


COBJ=stimelinux.c.o 

OBJ=$(CPPOBJ) $(COBJ)

allegro.a: $(OBJ)
	ar ruv allegro.a $(OBJ)
	ranlib allegro.a

clean:
	rm -f allegro.a *.o

$(CPPOBJ): %.cpp.o: $(srcdir)/%.cpp Makefile
	$(CCC) -c $(CFLAGS) $< -o $@

$(COBJ): %.c.o: $(srcdir)/%.c Makefile
	$(CC) -c $(CFLAGS) $< -o $@

