12345678910111213141516171819202122232425262728293031323334353637383940 |
- VPATH = src
- CC = g++
- CXXFLAG = --std=c++11 -I headers -Ofast
- HEADERS = $(wildcard headers/*.h)
- LIBS = -lsfml-graphics -lsfml-window -lsfml-system
- OBJ = diamondsquare.o \
- markovNames.o \
- landMap.o \
- lightingGenerator.o \
- perlinNoise.o \
- normalizer.o \
- fractalNoise.o \
- windMap.o \
- islandHeightmapGenerator.o \
- waterGenerator.o \
- river.o
- FRONTEND_OBJ = main.o \
- sfmlFrontend.o \
- mapDisplay.o
- TEST_OBJ = tester.o
- EXEC = pws
- all : pws
- src/landMap.o: src/landMap.cpp
- $(CC) -c src/landMap.cpp -o landMap.o --std=c++11 -I headers -O2
- %.o : %.cpp
- $(CC) -c $< -o $@ $(CXXFLAG)
- pws : $(FRONTEND_OBJ) $(OBJ) $(HEADERS)
- $(CC) -o $(EXEC) $(FRONTEND_OBJ) $(OBJ) $(LIBS)
- test : $(TEST_OBJ) $(OBJ) $(HEADERS)
- $(CC) -o test $(TEST_OBJ) $(OBJ) $(LIBS)
- .PHONY : clean
- clean :
- rm $(EXEC) $(OBJ) $(FRONTEND_OBJ) $(TEST_OBJ)
|