mirror of
https://github.com/SFML/SFML.git
synced 2024-12-11 12:39:15 +08:00
0ad6295ff4
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1145 4e206d99-4929-0410-ac5d-dfc041789085
19 lines
376 B
Makefile
19 lines
376 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 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
clean:
|
|
@rm -rf *.o
|
|
|
|
mrproper: clean
|
|
@rm -rf $(EXECPATH)/$(EXEC)
|