mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
ca5489a5d6
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1477 4e206d99-4929-0410-ac5d-dfc041789085
22 lines
475 B
Makefile
22 lines
475 B
Makefile
EXE = qt
|
|
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
|
|
OBJ = $(SRC:.cpp=.o)
|
|
LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-system -lQtCore -lQtGui -lX11
|
|
CFLAGS += -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(OBJ)
|
|
$(CPP) -o $(BINPATH)/$(EXE) $(OBJ) $(LDFLAGS)
|
|
|
|
$(OBJ): %.o: %.cpp
|
|
$(CPP) -o $@ -c $< $(CFLAGS)
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
clean:
|
|
@rm -rf $(OBJ)
|
|
|
|
mrproper: clean
|
|
@rm -rf $(BINPATH)/$(EXE)
|