diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-01-19 15:20:17 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-01-19 15:21:01 +0100 |
commit | f50c6dcb90616636d79c5f18f16f9d45e71fb568 (patch) | |
tree | 845d2e550102d4f7e97f0acefa4e6a70874908e5 /Makefile | |
parent | 57a41e3a520fff66db8c5f42a7738a9d922e1305 (diff) |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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 |