From 138c0efa33990ae16d9d950181d65d8b3dfc60c9 Mon Sep 17 00:00:00 2001 From: aqua Date: Fri, 28 Oct 2022 16:40:46 +0300 Subject: makefile: add libk target --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d7caeea --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +MAKE = make +TARGET = i686 +include ${TARGET}/toolchain.mk + +CCFLAGS += -Ilib -I. + +all: libk.a + +info: + @echo "this is the all target" + @echo "TARGET ${TARGET}" + @echo "BUILD ${BUILD}" + @echo " MAKE ${MAKE}" + @${MAKE} --version | head -n1 + @echo " CC ${CC} ${CCFLAGS}" + @${CC} --version | head -n1 + @echo " LD ${LD} ${LDFLAGS}" + @${LD} --version | head -n1 + +clean: + @rm -rf ${libk,OBJS} + +.SUFFIXES: .c .o +.c.o: + @echo ' CC $^' + @$(CC) $(CCFLAGS) -c -o $@ $^ + +include lib/targets.mk -- cgit v1.2.1