Browse Source

makefile

pull/1/head
Ivan Polyakov 3 years ago
parent
commit
02d59ecbdb
  1. 3
      .gitignore
  2. 12
      Makefile
  3. 2
      config.mk

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
config.mk

@ -0,0 +1,2 @@
CC=cc
CFLAGS=-ansi -pedantic -Wall -g
Loading…
Cancel
Save