1234567891011121314151617181920212223242526272829 |
- VERSION = -std=c++14
- CFLAGS = $(shell pkg-config --cflags glfw3)
- LDFLAGS = $(shell pkg-config --static --libs glfw3) -lGL -lGLEW -lpng
- all: game
- run_client: game_client
- vblank_mode=0 optirun ./game_client
-
- game_client: MainClient.cpp engine math client *.o
- g++ $(VERSION) -o $@ MainClient.cpp *.o $(LDFLAGS)
-
- engine: engine/*.cpp engine/*.h
- g++ $(VERSION) -c engine/*.cpp $(LDFLAGS)
-
- math: math/*.cpp math/*.h
- g++ $(VERSION) -c math/*.cpp $(LDFLAGS)
-
- client: client/*.cpp client/*.h
- g++ $(VERSION) -c client/*.cpp $(LDFLAGS)
-
- run_server: game_server
- ./game_server
-
- game_server: MainServer.cpp
- g++ $(VERSION) -o $@ MainServer.cpp
-
- clean:
- rm -f game_server game_client
|