SFML/samples/build/make/Makefile.X11

21 lines
374 B
Makefile
Raw Normal View History

EXE = X11
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
OBJ = $(SRC:.cpp=.o)
LDFLAGS = -lsfml-window -lsfml-system -lGLU -lGL -lX11
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)