Browse Source

Merge pull request 'Basic build system based on Makefile' (#1) from build-system into master

Reviewed-on: http://git.vilor.one:8079/Monaxys/C-jack/pulls/1
master
Monaxys 2 years ago
parent
commit
87ed48c488
  1. 3
      .gitignore
  2. 12
      Makefile
  3. 2
      README.md
  4. 2
      config.mk
  5. 4
      src/main.c

3
.gitignore vendored

@ -31,4 +31,7 @@ @@ -31,4 +31,7 @@
*.exe
*.out
*.app
c-jack
# Editors
*~

12
Makefile

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
include config.mk
c-jack: src/main.c
$(CC) $^ -o $@
%.o: src/%.c
$(CC) $^ -c
clean:
rm -f *.o c-jack
.PHONY: clean

2
README.md

@ -1,3 +1,3 @@ @@ -1,3 +1,3 @@
# C-jack
Tetminal version of blackjack.
Terminal version of blackjack.

2
config.mk

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
CC=cc
CFLAGS=-ansi -pedantic -Wall -g

4
src/main.c

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
int main(int argc, char **argv)
{
return 0;
}
Loading…
Cancel
Save