| 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 | LIBS = -llttng-ust -ldl |
| 13 | LOCAL_CPPFLAGS += -I. |
| 14 | |
| 15 | all: app |
| 16 | |
| 17 | .PHONY: app |
| 18 | |
| 19 | app: gen-ust-events.o tp.o |
| 20 | $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LIBS) |
| 21 | |
| 22 | gen-ust-events.o: gen-ust-events.c tp.h |
| 23 | $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -c -o $@ $< |
| 24 | |
| 25 | tp.o: tp.c |
| 26 | $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) $(CFLAGS) -c -o $@ $< |
| 27 | |
| 28 | |
| 29 | |