step: get working hello world with make

This commit is contained in:
NunoSempere 2023-04-29 18:34:26 -04:00
parent 0a01b3e398
commit cd468839da
4 changed files with 8 additions and 2 deletions

BIN
lisp Executable file

Binary file not shown.

0
lisp.c
View File

View File

@ -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
View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main(int argc, char** argv){
puts("Hello world!");
return 0;
}