X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=markers-userspace%2FMakefile;h=9c5135d020c100b3ba914d7ac5a1db5e9a61c03d;hb=506b3caece634562c8d7d4d91fcd8ab791348c52;hp=1c9bd84960ff2a47fa221e5ac2f7c23341755f12;hpb=52204d63bb8500f0cb24ea0a6088e92ea11562b3;p=lttv.git diff --git a/markers-userspace/Makefile b/markers-userspace/Makefile index 1c9bd849..9c5135d0 100644 --- a/markers-userspace/Makefile +++ b/markers-userspace/Makefile @@ -1,18 +1,21 @@ CC=gcc -all: testprog testprog.S +all: libtestlib.so testprog testprog.S marker-lib.o: marker-lib.c marker.h $(CC) -O2 -DCONFIG_MARKERS -c -o $@ marker-lib.c testprog: testprog.c marker.h marker-lib.o - $(CC) -Wl,-Telf_i386.xmark -O2 -DCONFIG_MARKERS -o $@ testprog.c marker-lib.o + $(CC) -Wl,-Telf_i386.xmark -O2 -DCONFIG_MARKERS -L. -ltestlib -o $@ testprog.c marker-lib.o testprog.S: testprog.c marker.h $(CC) -O2 -DCONFIG_MARKERS -S -o $@ testprog.c +libtestlib.so: testlib.c marker.h marker-lib.o + $(CC) -Wl,-Telf_i386.xmark -O2 -DCONFIG_MARKERS -shared -o $@ testlib.c marker-lib.o + .PHONY: clean clean: - rm -f testprog testprog.S + rm -f testprog testprog.S marker-lib.o libtestlib.so