X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=markers-userspace%2FMakefile;h=f446ca7bf18dcf35c15aa640a73099986252e749;hb=31efe1f8304f09a4f4139c387a98d3215cd423c9;hp=1a32a8acef092e0c5ba1f8a685f94257a9338249;hpb=99c5a0863a248fe49e6fb0463e0661673f1c8f67;p=lttv.git diff --git a/markers-userspace/Makefile b/markers-userspace/Makefile index 1a32a8ac..f446ca7b 100644 --- a/markers-userspace/Makefile +++ b/markers-userspace/Makefile @@ -1,18 +1,23 @@ +# 32 bits arch makefile + 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) -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