1 2 3 4 5 6 7 8 9 10 11
LIB_SRCS = utils.c sock_events.c libc_overrides.c CFLAGS = -Wall default: libudtrace.so libudtrace.so: $(LIB_SRCS) $(CC) $(CFLAGS) -fPIC -shared -Wl,-soname,libudtrace.so -o $@ $^ -ldl clean: rm -f *.o libudtrace.so