From f50c6dcb90616636d79c5f18f16f9d45e71fb568 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 19 Jan 2023 15:20:17 +0100 Subject: Switch from meson to plain make. --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0eb3a7a --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +TARGET = libthreadpool.so + +CFLAGS = -std=c99 -D_XOPEN_SOURCE=700 -fPIC -fopenmp -O3 -g -I. +LDFLAGS = -Wl,--version-script=libthreadpool.v -shared -fopenmp +CC = cc + +OBJS = \ + threadpool.o + +all: $(TARGET) + +$(TARGET): $(OBJS) + $(CC) -o $@ $(OBJS) ${LDFLAGS} + +%.o: %.c + $(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $< + +clean: + -rm -f *.o *.d $(TARGET) + +-include $(OBJS:.o=.d) + +.PHONY: clean -- cgit v1.2.3