Basic build system based on Makefile #1

Merged
Monaxys merged 3 commits from build-system into master 2 years ago
  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 @@
*.exe *.exe
*.out *.out
*.app *.app
c-jack
# Editors
*~

12
Makefile

@ -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 @@
# C-jack # C-jack
Tetminal version of blackjack. Terminal version of blackjack.

2
config.mk

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

4
src/main.c

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