summaryrefslogtreecommitdiff
path: root/userland/terminal/Makefile
blob: 6a1bffe8afa63345c45ceade690781572b047719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC="i686-sb-gcc"
CFLAGS = -ggdb -ffreestanding -O0 -Wall -Wextra -pedantic -mgeneral-regs-only -Wimplicit-fallthrough -static -fsanitize=shift,signed-integer-overflow,bounds
LIB=-L../libgui -lgui -L../json -ljson -L../libc -lc -lgcc
INC=-I../libc/ -I../json/ -I../libgui/
BINS=term
all: $(BINS)

term.o: term.c
	clang-format -i $<
	$(CC) $(CFLAGS) $(INC) $(LIB) -o $@ -c $<

term: term.o
	$(CC) -nostdlib $(CFLAGS) -o $@ $^ $(LIB)

clean:
	rm $(BINS) *.o