Files
libmce-glib/examples/Makefile
Simo Piiroinen 7e0b708217 [libmce-glib] Add an example application
Serves as an example on how to use functionality provided by libmce-glib
and is useful also for testing and debugging the library itself.

Note that the application is built using libmce-glib headers and libraries
that are installed in the development environment - the same way regular
applications not included in libmce-glib source tree need to operate.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
2023-05-08 10:33:23 +03:00

16 lines
448 B
Makefile

.PHONY: build clean mostlyclean
build::
clean:: mostlyclean
mostlyclean:: ; $(RM) *.o *~ *.bak
PKG_NAMES += glib-2.0
PKG_NAMES += libmce-glib
CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS += -Wall -Wextra -Os -g -std=c99
LDFLAGS += -g
LDLIBS += -Wl,--as-needed
CFLAGS += $(shell pkg-config --cflags $(PKG_NAMES))
LDLIBS += $(shell pkg-config --libs $(PKG_NAMES))
example : example.o
build:: example
clean:: ; $(RM) example