diff options
author | Marvin Borner | 2020-09-15 22:30:45 +0200 |
---|---|---|
committer | Marvin Borner | 2020-09-15 22:30:45 +0200 |
commit | 857c228909603d1a27a40f2714f8b9076fabba6e (patch) | |
tree | 19fe7eb4f41975de4a161d4ef55fcd4fba4fbec6 /libtxt/Makefile | |
parent | 1a99700287749211aec38cb58ea2664585154794 (diff) |
Keymaps n stuff
Diffstat (limited to 'libtxt/Makefile')
-rw-r--r-- | libtxt/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libtxt/Makefile b/libtxt/Makefile new file mode 100644 index 0000000..62a2afb --- /dev/null +++ b/libtxt/Makefile @@ -0,0 +1,20 @@ +# MIT License, Copyright (c) 2020 Marvin Borner + +COBJS = keymap.o +CC = ../cross/opt/bin/i686-elf-gcc +LD = ../cross/opt/bin/i686-elf-ld +AR = ../cross/opt/bin/i686-elf-ar + +CFLAGS = -Wall -Wextra -nostdlib -nostdinc -fno-builtin -mgeneral-regs-only -std=c99 -m32 -pedantic-errors -Iinc/ -I../libc/inc/ -fPIE -Duserspace -Ofast + +all: libgui clean + +%.o: %.c + @$(CC) -c $(CFLAGS) $< -o $@ + +libgui: $(COBJS) + @mkdir -p ../build/ + @$(AR) rcs ../build/libtxt.a $+ + +clean: + @find . -name "*.o" -type f -delete |