git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@6 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-28 04:07:41 +00:00
parent a14d3e9f58
commit 4800c9822f
4 changed files with 39 additions and 36 deletions

View File

@@ -27,11 +27,14 @@ L_OBJS += src/x11.o
L_LIBS += -lX11
endif
.PHONY: all clean
.PHONY: all format clean
.SUFFIXES: .c .o
all: $(LIB)milsko$(SO)
format:
clang-format --verbose -i $(shell find src include -name "*.c" -or -name "*.h")
$(LIB)milsko$(SO): $(L_OBJS)
$(CC) $(LDFLAGS) -shared -o $@ $(L_OBJS) $(L_LIBS)