about summary refs log tree commit diff
path: root/Makefile
blob: d24a00376de46bdaec731c596517e7e8f250894d (plain)
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
CFLAGS ?= -std=c99 -Wall -Werror -static -g -O0
.DEFAULT_GOAL := all

BOOTSTRAP_SOURCES = boot/catboot.c boot/common.c boot/lex.c
SOURCES = src/catskill.csk

build/catskill: build $(SOURCES)
	echo "No catskill compiler exists yet. Building empty file."
	touch ./build/catskill

build/catboot: build $(BOOTSTRAP_SOURCES)
	$(CC) $(CFLAGS) -o ./build/catboot ./boot/catboot.c

build:
	mkdir -p ./build

.PHONY: all run run-boot clean

all: build/catskill build/catboot

run: build/catskill
	echo "Not implemented yet."

run-boot: build/catboot
	./build/catboot

clean:
	rm -rf build/*