6 # $Id: Makefile,v 1.3 2004/07/19 05:19:55 sobomax Exp $
8 +# Linux Makefile by Matt Smith <mcs@darkregion.net>, 2011/01/04
13 +EXECINFO_CFLAGS=$(CFLAGS) -O2 -pipe -fno-strict-aliasing -std=gnu99 -c
14 +EXECINFO_LDFLAGS=$(LDFLAGS)
16 -SRCS= stacktraverse.c stacktraverse.h execinfo.c execinfo.h
21 + $(CC) $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) stacktraverse.c
22 + $(CC) $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) execinfo.c
23 + $(AR) rcs libexecinfo.a stacktraverse.o execinfo.o
28 + $(CC) -fpic -DPIC $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) stacktraverse.c -o stacktraverse.So
29 + $(CC) -fpic -DPIC $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) execinfo.c -o execinfo.So
30 + $(CC) -shared -Wl,-soname,libexecinfo.so.1 -o libexecinfo.so.1 stacktraverse.So execinfo.So
39 -#stacktraverse.c: gen.py
40 -# ./gen.py > stacktraverse.c
42 -.include <bsd.lib.mk>
44 + rm -rf *.o *.So *.a *.so