include ../common.mk TARGET = owlps-aggregatord HEADER = owlps-aggregator.h ## Additional libraries ## LDFLAGS += -pthread -lconfuse -lowlps ifeq "$(OS)" "Linux" LDFLAGS += -lrt endif ifeq "$(OS)" "GNU/kFreeBSD" LDFLAGS += -lrt endif ## Targets ## dynamic: $(TARGET) static: $(TARGET).static all: dynamic static ## Installation / uninstallation ## install : $(TARGET) @$(CP) $(TARGET) $(INSTALL_DIR) @cd $(INSTALL_DIR) ; chown root:root $(TARGET) ; chmod 755 $(TARGET) uninstall : @$(RM) $(INSTALL_DIR)/$(TARGET) ## Help ## help : @echo "Needed libraries:" @echo " libconfuse-dev" @echo " libowlps-dev" @echo @echo "Targets:" @echo " $(TARGET) (default target): Builds the program $(TARGET)." @echo " install : Installs the program $(TARGET)." @echo " uninstall : Uninstalls the program $(TARGET)." @echo " clean: Deletes the temporary files." @echo " purge: Deletes the built binaries." @echo @echo "Note: Files are installed under $(PREFIX)." @echo "Tune the PREFIX variable in the Makefile to change that." include ../common-rules.mk