Skip to content
Snippets Groups Projects
Commit 05260b87 authored by Kurucz György's avatar Kurucz György
Browse files

Modified makefile to use $(CC) variable, to be more generic.

parent 14927da0
Branches
No related tags found
No related merge requests found
...@@ -3,15 +3,16 @@ main_src = src/main.c src/class.c src/nfa.c src/dfa.c src/parse.c src/regex.c ...@@ -3,15 +3,16 @@ main_src = src/main.c src/class.c src/nfa.c src/dfa.c src/parse.c src/regex.c
test_src = src/test.c src/class.c src/nfa.c src/dfa.c src/parse.c src/regex.c test_src = src/test.c src/class.c src/nfa.c src/dfa.c src/parse.c src/regex.c
include_flags = -I include include_flags = -I include
flags = -g -Wall -pedantic -g flags = -g -Wall -pedantic -g
compiler = gcc $(flags) $(include_flags) compiler = $(CC) $(flags) $(include_flags)
all: main_ spec.pdf all: main_
main_: main_:
$(compiler) $(main_src) -o main $(compiler) $(main_src) -o main
test: test_ test: test_
test_: test_:
$(compiler) $(test_src) -o test $(compiler) $(test_src) -o test
./test ./test
spec: spec.pdf
spec.pdf: spec.tex spec.pdf: spec.tex
latexmk -pdf spec.tex latexmk -pdf spec.tex
latexmk -c latexmk -c
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment