diff options
| author | Lorenzo Torres <lorenzotorres@outlook.it> | 2026-06-09 08:45:29 +0200 |
|---|---|---|
| committer | Lorenzo Torres <lorenzotorres@outlook.it> | 2026-06-09 08:45:29 +0200 |
| commit | 13d591df4ae3dc07f3be8477f7bcbed296d7bc40 (patch) | |
| tree | 77a0f78763bff3c03c6282d961ea2c777fe133c9 /Makefile | |
feat: first commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d98a13d --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +include config.mk + +SRC:=lc.c\ + lexer.c + +OBJ:=$(SRC:.c=.o) + +all: $(OBJ) + $(CC) $(OBJ) -o lc + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + +.PHONY: clean +clean: + @rm -rfv $(OBJ) lc |
