step: get working hello world with make
This commit is contained in:
parent
0a01b3e398
commit
cd468839da
4
makefile
4
makefile
|
@ -9,14 +9,14 @@
|
|||
CC=tcc # much faster compilation than gcc
|
||||
|
||||
## Main file
|
||||
SRC=lisp.c
|
||||
SRC=./src/lisp.c
|
||||
|
||||
## Formatter
|
||||
STYLE_BLUEPRINT=webkit
|
||||
FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT)
|
||||
|
||||
build: $(SRC)
|
||||
$(cc) $(src) -o lisp
|
||||
$(CC) $(SRC) -o lisp
|
||||
|
||||
format: $(SRC)
|
||||
$(FORMATTER) $(SRC)
|
||||
|
|
6
src/lisp.c
Normal file
6
src/lisp.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char** argv){
|
||||
puts("Hello world!");
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user