From 44e48ddc2785b037abd202a8d38b2ef2e8c36600 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 14 Dec 2024 23:15:34 +1100 Subject: initial commit --- qstd/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 qstd/Makefile (limited to 'qstd/Makefile') diff --git a/qstd/Makefile b/qstd/Makefile new file mode 100644 index 0000000..fa952dc --- /dev/null +++ b/qstd/Makefile @@ -0,0 +1,25 @@ +.POSIX: +target = libqstd.a +includes = -I../qstd +defines = -Dplat_x86 -Dplat_posix -Dallocation_default_alignment=8 +cflags = -std=c90 -pedantic -Wall -Wextra $(DEBUG_COMPILE_FLAG) $(includes) $(defines) +lflags = $(DEBUG_LINK_FLAG) + +objects = plat.o memory.o + +.PHONY: all clean + +all: $(target) + +memory.o: memory.c memory.h plat.h + $(CC) -c $(cflags) memory.c -o memory.o + +plat.o: plat.c plat.h + $(CC) -c $(cflags) plat.c -o plat.o + +$(target): $(objects) + $(AR) -rcs $(target) $(objects) + +clean: + rm -f $(target) + rm -f $(objects) -- cgit v1.2.3-54-g00ecf