-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 786 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CC = clang-21
CFLAGS = -Weverything -std=c23 -fPIC \
-Wno-c++98-compat -Wno-pre-c11-compat -Wno-pre-c23-compat \
-Wno-reserved-identifier -Wno-incompatible-library-redeclaration \
-Wno-implicit-void-ptr-cast -Wno-switch-default \
-Wno-undef
LDFLAGS = -shared
SRCS = BlocksRuntime.c BlocksRuntimeExtra.c
HEADERS = ../Block.h ../Block_private.h
OBJS = ${SRCS:S/.c/.o/g}
OBJDIR = obj
TARGET = libBlocksRuntime.so
STRIP = strip --strip-all
all: ${TARGET}
obj:
mkdir -p ${OBJDIR}
.c.o:
${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
${TARGET}: ${OBJS}
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
${STRIP} ${TARGET}
clean:
rm -rf ../obj
install:
install -o root -g bin -m 444 ${TARGET} /usr/lib
install -o root -g bin -m 444 ${HEADERS} /usr/include
.PHONY: all clean install