2f524481c1
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1002 4e206d99-4929-0410-ac5d-dfc041789085
19 lines
423 B
Makefile
19 lines
423 B
Makefile
EXEC = wxwidgets
|
|
OBJ = Main.o wxSFMLCanvas.o
|
|
|
|
all: $(EXEC)
|
|
|
|
wxwidgets: $(OBJ)
|
|
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system `wx-config --libs` `pkg-config --libs gtk+-2.0`
|
|
|
|
%.o: %.cpp
|
|
$(CC) -o $@ -c $< $(CFLAGS) -I/usr/include/gtk-2.0 `wx-config --cppflags` `pkg-config --cflags gtk+-2.0`
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
clean:
|
|
@rm -rf *.o
|
|
|
|
mrproper: clean
|
|
@rm -rf $(EXECPATH)/$(EXEC)
|