mirror of
https://github.com/SFML/SFML.git
synced 2024-12-02 00:01:05 +08:00
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)
|