Licensing information
[deliverable/lttng-ivc.git] / lttng_ivc / apps / preload_provider / Makefile
CommitLineData
dc3b014c
JR
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
12PROVIDER_LIBS = -llttng-ust -ldl
13APP_LIBS = -ldl
14LOCAL_CPPFLAGS += -I.
15
16.PHONY: app provider app-enum provider-enum
17
18provider: libtp.so
19provider-enum: libtp-enum.so
20
21
22app: app.o
23 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(APP_LIBS)
24
25app.o: app.c
26 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -c -o $@ $<
27
28libtp.so: tp.o
29 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) --shared -o $@ $< $(PROVIDER_LIBS) $(LDFLAGS)
30
31tp.o: tp.c
32 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $<
33
34app-enum: app-enum.o
35 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(APP_LIBS)
36
37app-enum.o: app.c
38 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -DIVC_ENUM -c -o $@ $<
39
40libtp-enum.so: tp-enum.o
41 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) --shared -o $@ $< $(PROVIDER_LIBS) $(LDFLAGS)
42
43tp-enum.o: tp.c
44 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -DIVC_ENUM -fpic -c -o $@ $<
45
46
This page took 0.027826 seconds and 5 git commands to generate.