move everything out of trunk
[lttv.git] / markers-userspace / Makefile
index e770d7377ab9fcec8c1f7a4013a3482b0f3b78e0..f446ca7bf18dcf35c15aa640a73099986252e749 100644 (file)
@@ -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) -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 marker-lib.o
+       rm -f testprog testprog.S marker-lib.o libtestlib.so
This page took 0.023188 seconds and 4 git commands to generate.