Modified the Linux build system so that makefiles are now outside the source tree

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1477 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2010-03-23 15:55:07 +00:00
parent fd8fa4e2f8
commit ca5489a5d6
21 changed files with 477 additions and 21 deletions

View file

@ -0,0 +1,20 @@
EXE = shader
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
OBJ = $(SRC:.cpp=.o)
LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-system
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)