aboutsummaryrefslogtreecommitdiff
path: root/libs/libtxt/Makefile
blob: 38fe01f4654830b421ed556886376f958e5b7234 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# MIT License, Copyright (c) 2020 Marvin Borner

COBJS = keymap.o #xml.o html.o
CC = ccache ../../cross/opt/bin/i686-elf-gcc
LD = ccache ../../cross/opt/bin/i686-elf-ld
AR = ccache ../../cross/opt/bin/i686-elf-ar

CFLAGS = $(CFLAGS_DEFAULT) -I../ -I../libc/inc/ -pie -fPIE -fPIC -DUSER

all: libtxt

%.o: %.c
	@$(CC) -c $(CFLAGS) $< -o $@

libtxt: $(COBJS)
	@mkdir -p ../../build/
	@$(AR) rcs ../../build/libtxt.a $+

clean:
	@find . -name "*.o" -type f -delete