This repository has been archived on 2019-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
PILG/Makefile
Geoffrey Frogeye f237beee15 Instructions pour Travis CI
* Ajout de .travis.yml
* Modification de l'instruction test en testing (ne fait pas la même chose que les test habituels)
* Ajout d'une image par défaut dans test.cpp
* Corrections d'erreurs qui empêchaient la compilation
2014-05-03 19:57:33 +02:00

31 lines
666 B
Makefile

# Variables
## Pour make
.PHONY: clean, mrproper
## Compilation
CXX = g++
CXXFLAGS = -lSDL -lSDLmain -DDEBUG
## Chemins
EXEPATH = bin/
OBJPATH = obj/
SRCPATH = src/
# Programmes possibles
main: main.o image.o
$(CXX) $(OBJPATH)main.o $(OBJPATH)image.o -o $(EXEPATH)$@ $(CXXFLAGS)
testing: test.o image.o
$(CXX) $(OBJPATH)test.o $(OBJPATH)image.o -o $(EXEPATH)$@ $(CXXFLAGS)
# Dépendances
main.o: $(SRCPATH)main.cpp $(SRCPATH)image.h
$(CXX) -c $< -o $(OBJPATH)$@ $(CXXFLAGS)
test.o: $(SRCPATH)test.cpp $(SRCPATH)image.cpp
$(CXX) -c $< -o $(OBJPATH)$@ $(CXXFLAGS)
image.o: $(SRCPATH)image.cpp
$(CXX) -c $< -o $(OBJPATH)$@
# Meta
clean:
rm -rf $(OBJPATH)*.o