2012-05-09 15:50:46 +02:00
|
|
|
include ../common.mk
|
2011-08-18 23:10:49 +02:00
|
|
|
|
2012-05-24 14:19:04 +02:00
|
|
|
TARGET_LIB = libowlps-resultreader
|
|
|
|
STATIC = $(TARGET_LIB).a
|
2011-08-22 21:51:30 +02:00
|
|
|
HEADER = owlps-resultreader.h
|
2011-08-18 23:10:49 +02:00
|
|
|
EXAMPLE = owlps-resultreader-udp
|
|
|
|
|
|
|
|
|
2012-05-24 14:19:04 +02:00
|
|
|
## Additional libraries ##
|
2011-08-18 23:10:49 +02:00
|
|
|
|
2012-05-24 14:19:04 +02:00
|
|
|
LDFLAGS += -lowlps
|
2012-01-25 15:42:40 +01:00
|
|
|
ifeq "$(OS)" "Linux"
|
2012-05-24 14:19:04 +02:00
|
|
|
LDFLAGS += -lrt
|
2012-01-25 15:42:40 +01:00
|
|
|
endif
|
|
|
|
ifeq "$(OS)" "GNU/kFreeBSD"
|
2012-05-24 14:19:04 +02:00
|
|
|
LDFLAGS += -lrt
|
2011-10-20 13:45:01 +02:00
|
|
|
endif
|
|
|
|
|
2011-08-18 23:10:49 +02:00
|
|
|
|
2012-05-24 14:19:04 +02:00
|
|
|
## Targets ##
|
2011-08-18 23:10:49 +02:00
|
|
|
|
|
|
|
all : static example
|
|
|
|
static : $(STATIC)
|
|
|
|
example : $(EXAMPLE)
|
|
|
|
|
|
|
|
|
2011-12-02 15:52:39 +01:00
|
|
|
## Help ##
|
2011-08-18 23:10:49 +02:00
|
|
|
|
|
|
|
help :
|
2011-12-02 16:27:22 +01:00
|
|
|
@echo "Needed libraries:"
|
2011-08-18 23:10:49 +02:00
|
|
|
@echo " libowlps-dev"
|
|
|
|
@echo
|
2011-12-02 16:27:22 +01:00
|
|
|
@echo "Targets:"
|
|
|
|
@echo " all (default): Builds the library and the sample program."
|
|
|
|
@echo " static: Builds the static library."
|
|
|
|
@echo " example: Builds the sample program."
|
2011-08-18 23:10:49 +02:00
|
|
|
@echo
|
2011-12-02 16:27:22 +01:00
|
|
|
@echo " clean: Deletes the temporary files."
|
|
|
|
@echo " purge: Deletes the built binaries."
|
2012-05-24 14:19:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
include ../common-rules.mk
|