ca5489a5d6
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1477 4e206d99-4929-0410-ac5d-dfc041789085
22 lines
514 B
Makefile
22 lines
514 B
Makefile
EXE = wxwidgets
|
|
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
|
|
OBJ = $(SRC:.cpp=.o)
|
|
LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-system `wx-config --libs` `pkg-config --libs gtk+-2.0`
|
|
CFLAGS += -I/usr/include/gtk-2.0 `wx-config --cppflags` `pkg-config --cflags gtk+-2.0`
|
|
|
|
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)
|