Configuration: The CONFIG works fine:
ifeq (@(TUP_PLATFORM),macosx)
# for Mac:
...
Excluding part of the sources worked just fine. I will see if I can edit
the manual and send a PR (it's nowhere in it)
ifeq ($(LTTNG_BUILD),1)
# prepare the lttng generated files
: foreach *.tp |> lttng-gen-tp %f |> %B.h %B.c %B.o {lttng_generated}
LDLIBS+= -llttng-ust -ldl
TRACE_SRC= $(patsubst %.tp,%.c,$(TRACE_TP))
CPPFLAGS+= -DUSE_LTTNG
else
# create empty bin so the linking below is happy
: |> |> {lttng_generated}
endif
# the {lttng_generated} contains c/h/o files, so we exclude them with a "^"
: {objects_sans_main} main.o {lttng_generated} ^*.[hc] |> ^ LINKING %f ^
g++ %f -o %o $(LDFLAGS) $(LDLIBS)|> theApplication
Bottom line, currently it works (almost). I wish there were more samples so
maybe I will prepare some.
Noam
--
--
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.