From 05498860e8f7b1e8bb27880bc7526de026694804 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 26 Mar 2021 21:55:50 +0100 Subject: Renamed libs Cleaner and more flexible. --- libs/libtxt/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libs/libtxt/Makefile (limited to 'libs/libtxt/Makefile') diff --git a/libs/libtxt/Makefile b/libs/libtxt/Makefile new file mode 100644 index 0000000..93a7993 --- /dev/null +++ b/libs/libtxt/Makefile @@ -0,0 +1,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/ -Duserspace + +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 -- cgit v1.2.3