File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 11CC = c++
22CFLAGS = -O2 -Wall -Wunused -lpthread ` fltk-config --use-images --cxxflags --ldflags ` \
3- --std=c++11 \
4- ` pkg-config --cflags --libs libvncclient libvncserver `
3+ --std=c++11 -finline-functions -march=x86-64
54DEBUGFLGS = -g -O0
65BINDIR = /usr/local/bin
76TARGET = spiritvnc-fltk
87SRC = ` ls src/* .cxx `
98PKGCONF = ` which pkg-config `
109LIBXPM =
10+ LIBVNC =
1111OSNAME = $(shell uname -s)
1212
1313# don't include X11 stuff for mac
1717 LIBXPM = -lXpm
1818endif
1919
20+ # fix OI / Solaris stuff
21+ ifeq ($(OSNAME ) , SunOS)
22+ LIBVNC = `libvncserver-config --cflags --libs` -m64
23+ else
24+ LIBVNC = `pkg-config --cflags --libs libvncclient libvncserver`
25+ endif
26+
2027spiritvnc-fltk :
2128 @echo " Building on '$( OSNAME) '"
2229 @echo " "
@@ -27,7 +34,7 @@ spiritvnc-fltk:
2734 exit 1 ; \
2835 fi
2936
30- $(CC) $(SRC) -o $(TARGET) $(CFLAGS) $(LIBXPM)
37+ $(CC) $(SRC) -o $(TARGET) $(CFLAGS) $(LIBXPM) $(LIBVNC)
3138
3239debug :
3340 @echo " Building debug on '$( OSNAME) '"
4047 exit 1 ; \
4148 fi
4249
43- $(CC) $(SRC) -o $(TARGET) $(CFLAGS) $(LIBXPM) $(DEBUGFLGS)
50+ $(CC) $(SRC) -o $(TARGET) $(CFLAGS) $(LIBXPM) $(LIBVNC) $( DEBUGFLGS)
4451
4552.PHONY : clean
4653clean ::
You can’t perform that action at this time.
0 commit comments