mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 16:10:50 +00:00
better makefile
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@55 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -47,11 +47,13 @@ SO = .dll
|
||||
EXEC = .exe
|
||||
endif
|
||||
|
||||
EXAMPLES = examples/example$(EXEC)
|
||||
|
||||
.PHONY: all format clean lib examples
|
||||
|
||||
all: lib examples
|
||||
lib: src/libMw$(SO)
|
||||
examples: examples/example$(EXEC)
|
||||
examples: $(EXAMPLES)
|
||||
|
||||
format:
|
||||
clang-format --verbose -i $(shell find src include -name "*.c" -or -name "*.h")
|
||||
@@ -69,4 +71,4 @@ examples/%.o: examples/%.o
|
||||
$(CC) $(E_CFLAGS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f src/*.dll src/*.so src/*.a src/*.lib */*.o examples/*.exe examples/example
|
||||
rm -f src/*.dll src/*.so src/*.a src/*.lib */*.o examples/*.exe $(EXAMPLES)
|
||||
|
||||
Reference in New Issue
Block a user