Skip to content

Commit

Permalink
Add project files
Browse files Browse the repository at this point in the history
  • Loading branch information
g10ria committed Aug 19, 2022
0 parents commit 3880b9b
Show file tree
Hide file tree
Showing 8 changed files with 1,283 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.class
*.o
*.exe
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
compile=gcc
buildDir=bin
headersDir=headers

# deps = headers/battleship.h headers/hashmap.h

Bobj = battleship.o hashmap.o mt.o
Hobj = hangman.o

%.o: %.c
$(compile) -c -o $@ $<

battleship: $(Bobj)
$(compile) -o ${buildDir}/$@ $^ -I/$(headersDir)

hangman: $(Hobj)
$(compile) -o ${buildDir}/$@ $^ -I/$(headersDir)
Loading

0 comments on commit 3880b9b

Please sign in to comment.