Skip to content

Commit

Permalink
makefile updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinmayMittal committed Apr 15, 2022
1 parent 323aed6 commit 544b4af
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode
*.out
*.out
*.o
40 changes: 39 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
CXX = g++

#OBJS specifies which files to compile as part of the project
OBJS = Button.cpp collision.cpp Game.cpp main.cpp MainMenu.cpp MyTexture.cpp MyWindow.cpp Player.cpp Screen.cpp SearchOpponent.cpp Text.cpp TextInput.cpp Tile.cpp TileAtlas.cpp Timer.cpp SoundEffect.cpp Entity.cpp Animation.cpp
OBJS = Button.o collision.o Game.o main.o MainMenu.o MyTexture.o MyWindow.o Player.o Screen.o SearchOpponent.o Text.o TextInput.o Tile.o TileAtlas.o Timer.o SoundEffect.o Entity.o Animation.o

#COMPILER_FLAGS specifies the additional compilation options we're using
# -w suppresses all warnings
Expand All @@ -20,5 +20,43 @@ all : Client Server
Client: $(OBJS)
$(CXX) -I/usr/include/SDL2 $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)

Button.o: MyWindow.h

collision.o:

Game.o: Tile.h Player.h MyTexture.h TileAtlas.h TileAtlas.h Renderable.h Entity.h Text.h Timer.h Screen.h constants.h MyWindow.h

main.o: MyWindow.h Game.h MainMenu.h

MainMenu.o: Screen.h Game.h TextInput.h SearchOpponent.h MyWindow.h Button.h

MyTexture.o:

MyWindow.o: MyTexture.h Text.h Renderable.h constants.h Screen.h

Player.o: Tile.h MyTexture.h Renderable.h MyWindow.h SoundEffect.h Timer.h utilities.h Animation.h constants.h Game.h

Screen.o: MyWindow.h

SearchOpponent.o: MyWindow.h MessageStructs.h Game.h Screen.h

Text.o: MyTexture.h MyWindow.h

TextInput.o: MyWindow.h

Tile.o: MyTexture.h Renderable.h collision.h TileAtlas.h Game.h

TileAtlas.o:

Timer.o:

SoundEffect.o:

Entity.o: Player.h

Animation.o: Renderable.h MyTexture.h



Server: server/server.cpp
$(CXX) server/server.cpp $(COMPILER_FLAGS) -o server/server.out

0 comments on commit 544b4af

Please sign in to comment.