CC=g++
DBG=-O2 -Wuninitialized -Wshadow -Wall -Wno-non-virtual-dtor -Wno-multichar -Wno-char-subscripts -Wno-unused-function
OBJ=bigband.o dump-wave.o midi-out.o ps-out.o midi-in.o gm.o sdl-widgets.o str.o help-win.o SDL_cond_aros.o AddPart.o

.SUFFIXES=
.PHONY: all

all: ../bigband

../bigband: $(OBJ)
	$(CC) -s $(OBJ) -o $@ -lSDL_gfx -lSDL_ttf -lfreetype2 -lSDL

%.o: %.cpp
	$(CC) -c $< -I.. $(DBG)

sdl-widgets.o: sdl-widgets.h sw-pixmaps.h
bigband.o: bigband.h sdl-widgets.h dump-wave.h midi-out.h midi-in.h ps-out.h templates.h AddPart.h #bb-icon.xpm
dump-wav.o: dump-wave.h
midi-out.o: midi-out.h bigband.h gm.h
midi-in.o: midi-in.h bigband.h gm.h str.h
ps-out.o: ps-out.h bigband.h
str.o: str.h
gm.o: gm.h
