SFML/samples/qt/Makefile

19 lines
325 B
Makefile

EXEC = qt
OBJ = Main.o QSFMLCanvas.o
all: $(EXEC)
qt: $(OBJ)
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system -lQtCore -lQtGui -lX11
%.o: %.cpp
$(CC) -o $@ -c $< $(CFLAGS) -I/usr/include/qt4
.PHONY: clean mrproper
clean:
@rm -rf *.o
mrproper: clean
@rm -rf $(EXECPATH)/$(EXEC)