1 # Copyright (C) 2017 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
3 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
4 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
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.
12 PROVIDER_LIBS
= -llttng-ust
-ldl
16 .PHONY
: app provider app-enum provider-enum
19 provider-enum
: libtp-enum.so
23 $(CC
) -o
$@
$(LDFLAGS
) $(CFLAGS
) $^
$(APP_LIBS
)
26 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
29 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(CFLAGS
) --shared
-o
$@
$< $(PROVIDER_LIBS
) $(LDFLAGS
)
32 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(CFLAGS
) -fpic
-c
-o
$@
$<
35 $(CC
) -o
$@
$(LDFLAGS
) $(CFLAGS
) $^
$(APP_LIBS
)
38 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(CFLAGS
) -DIVC_ENUM
-c
-o
$@
$<
40 libtp-enum.so
: tp-enum.o
41 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(CFLAGS
) --shared
-o
$@
$< $(PROVIDER_LIBS
) $(LDFLAGS
)
44 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(CFLAGS
) -DIVC_ENUM
-fpic
-c
-o
$@
$<