Add preload_provider app
[deliverable/lttng-ivc.git] / lttng_ivc / apps / preload_provider / Makefile
1 # Copyright (C) 2017 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
2 #
3 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
4 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
5 #
6 # Permission is hereby granted to use or copy this program for any
7 # purpose, provided the above notices are retained on all copies.
8 # Permission to modify the code and to distribute modified code is
9 # granted, provided the above notices are retained, and a notice that
10 # the code was modified is included with the above copyright notice.
11
12 PROVIDER_LIBS = -llttng-ust -ldl
13 APP_LIBS = -ldl
14 LOCAL_CPPFLAGS += -I.
15
16 .PHONY: app provider app-enum provider-enum
17
18 provider: libtp.so
19 provider-enum: libtp-enum.so
20
21
22 app: app.o
23 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(APP_LIBS)
24
25 app.o: app.c
26 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -c -o $@ $<
27
28 libtp.so: tp.o
29 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) --shared -o $@ $< $(PROVIDER_LIBS) $(LDFLAGS)
30
31 tp.o: tp.c
32 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $<
33
34 app-enum: app-enum.o
35 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(APP_LIBS)
36
37 app-enum.o: app.c
38 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -DIVC_ENUM -c -o $@ $<
39
40 libtp-enum.so: tp-enum.o
41 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) --shared -o $@ $< $(PROVIDER_LIBS) $(LDFLAGS)
42
43 tp-enum.o: tp.c
44 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -DIVC_ENUM -fpic -c -o $@ $<
45
46
This page took 0.029069 seconds and 5 git commands to generate.