--- Makefile.orig 2021-02-15 06:05:31 UTC +++ Makefile @@ -1,5 +1,5 @@ CC = c++ -CFLAGS = -O2 -Wall -lpthread `fltk-config --use-images --cxxflags --ldflags` \ +CFLAGS += -Wall -lpthread -lXpm `fltk-config --use-images --cxxflags --ldflags` \ `pkg-config --cflags --libs libvncclient libvncserver libssh2` DEBUGFLGS= -g -O0 BINDIR = /usr/local/bin @@ -7,6 +7,8 @@ TARGET = spiritvnc-fltk SRC = `ls src/*.cxx` PKGCONF = `which pkg-config` +all: spiritvnc-fltk + spiritvnc-fltk: @if [ -z ${PKGCONF} ]; then \ echo " " ; \ @@ -30,7 +32,7 @@ clean:: rm -f $(TARGET) install: - install -c -s -o root -m 555 $(TARGET) $(BINDIR) + $(BSD_INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(BINDIR)/spiritvnc uninstall: @if [ -f ${BINDIR}"/"${TARGET} ] ; then \