X-Git-Url: https://git.stg.codes/ssmd.git/blobdiff_plain/b18a1581c56dcd2b359097a8e9cf690b5565eada..6c4b6a06234acd26e1d9bbb51668157263165fe1:/Makefile diff --git a/Makefile b/Makefile index c53a1dc..ad0f662 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,15 @@ endif INCS = -Iinclude -I3rdparty/snmp++/include CXXFLAGS += -W -Wall -Wextra $(INCS) $(DEFS) -LIBS = -lpthread \ - -lssl \ - -lcurl \ +LIBS = 3rdparty/snmp++/libsnmp++.a \ -lboost_system \ -lboost_program_options \ - 3rdparty/snmp++/libsnmp++.a + -lcurl \ + -lssl \ + -lcrypto \ + -lpthread PROG = ssmd # SNMP Switch Management Daemon -VERSION = 1.1.3 +VERSION = 1.2.2 SOURCES = src/main.cpp \ src/pidfile.cpp \ @@ -57,21 +58,21 @@ install: install-bin install-data install-bin: ifeq ($(findstring $(DEFS), -DDEBUG),) - install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG) + install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG) else - install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG) + install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG) endif install-data: - install -D -m $(DATA_MODE) -o $(OWNER) ./ssmd.conf $(PREFIX)/etc/ssmd/ssmd.conf + install -D -m $(DATA_MODE) -o $(OWNER) ./ssmd.conf $(PREFIX)/etc/ssmd/ssmd.conf uninstall: uninstall-bin uninstall-data uninstall-bin: - rm -f $(PREFIX)/usr/sbin/$(PROG) + rm -f $(PREFIX)/usr/sbin/$(PROG) uninstall-data: - rm -f $(PREFIX)/etc/ssmd/ssmd.conf + rm -f $(PREFIX)/etc/ssmd/ssmd.conf ifneq ($(MAKECMDGOALS),distclean) ifneq ($(MAKECMDGOALS),clean)