-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#############################################################
CC = gcc
NAME = vvtbi
OBJDIR = src
CFLAGS = -Wall -Werror -O2 -Wextra -pedantic -ansi
#############################################################
#### DO NOT EDIT BELOW THIS LINE ############################
VERSION = 2.0
SOURCES = io.c tokenizer.c vvtbi.c
OBJS = $(SOURCES:%.c=$(OBJDIR)/%.o)
$(NAME): $(OBJS)
@$(CC) $(CFLAGS) $(OBJS) -o $(NAME) src/main.c
@rm -f $(OBJS);
@echo ""
@echo "**************************************************"
@echo " Vvtbi: \"Very, Very, Tiny, Basic\" Interpreter"
@echo " Version: "$(VERSION)
@echo " Vvtbi (the \"software\") is distributed under"
@echo " the terms of the Apache License, Version 2.0."
@echo " For more information, see README and CHANGELOG."
@echo " <jahan.addison[at]jacata[dot]me>"
@echo "**************************************************"
$(OBJS): $(OBJDIR)/%.o : src/%.c $(BINDIR) $(OBJDIR)
@$(CC) $(CFLAGS) -c $< -o $@
PHONY: clean
clean :
@rm -f $(NAME)*
#############################################################