Separate debug symbols from libkuroko.so by default
This commit is contained in:
parent
01a124054d
commit
658eeb6afd
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,6 +15,7 @@
|
||||
# Match library files anywhere.
|
||||
*.o
|
||||
*.so
|
||||
*.so.debug
|
||||
*.dll
|
||||
*.dSYM
|
||||
*.kbc
|
||||
|
4
Makefile
4
Makefile
@ -101,6 +101,8 @@ krk-%: tools/%.c ${KUROKO_LIBS}
|
||||
|
||||
libkuroko.so: ${OBJS}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -shared -o $@ ${OBJS} ${LDLIBS}
|
||||
objcopy --only-keep-debug $@ $@.debug
|
||||
strip --strip-unneeded $@
|
||||
|
||||
# Make sure we rebuild things when headers change as we have a lot of
|
||||
# headers that define build flags...
|
||||
@ -119,7 +121,7 @@ modules/math.so: src/module_math.c libkuroko.so
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@rm -f ${OBJS} ${TARGET} ${MODULES} libkuroko.so src/*.o kuroko.exe ${TOOLS} $(patsubst %,%.exe,${TOOLS})
|
||||
@rm -f ${OBJS} ${TARGET} ${MODULES} libkuroko.so *.so.debug src/*.o kuroko.exe ${TOOLS} $(patsubst %,%.exe,${TOOLS})
|
||||
@rm -rf docs/html
|
||||
|
||||
tags: $(wildcard src/*.c) $(wildcard src/*.h)
|
||||
|
Loading…
Reference in New Issue
Block a user