SRC = $(wildcard src/*.cc)
OBJ = $(SRC:.cc=.o)

LIBS = -lglyphkeeper -lldpng -lpng -lz -laldmb -ldumb -lagl_s -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound -lopengl32 -lglu32 -lfreetype

.PHONY: all

all: photon.exe

%.o: %.cc
	g++ -DALLEGRO_STATICLINK -Ipro -c -o $@ $<

photon.exe: $(OBJ)
	g++ src/icon.res -o $@ $^ $(LIBS)

