include ../common.mk TARGET_LIB = libowlps-resultreader STATIC = $(TARGET_LIB).a HEADER = owlps-resultreader.h EXAMPLE = owlps-resultreader-udp ## Additional libraries ## LDFLAGS += -lowlps ifeq "$(OS)" "Linux" LDFLAGS += -lrt endif ifeq "$(OS)" "GNU/kFreeBSD" LDFLAGS += -lrt endif ## Targets ## all : static example static : $(STATIC) example : $(EXAMPLE) ## Help ## help : @echo "Needed libraries:" @echo " libowlps-dev" @echo @echo "Targets:" @echo " all (default): Builds the library and the sample program." @echo " static: Builds the static library." @echo " example: Builds the sample program." @echo @echo " clean: Deletes the temporary files." @echo " purge: Deletes the built binaries." include ../common-rules.mk