2 # wxGLCanvas source makefile for Unix
4 # Copyright 1998, Robert Roebling
7 # wxWindows base directory
10 # set the OS type for compilation
13 # compile a library only
16 # needed for unactivated
20 LIB_TARGET=wx_opengl_gtk
24 # define library sources
30 #define library objects
33 $(LIB_CPP_SRC:.cpp=.o)
39 #additional things needed for compile
42 # include the definitions now
43 include ../../../../template.mak
46 @echo "Installing library files and headers for libwx_opengl_gtk.."
47 @echo " Creating directory.."
48 @$(WXBASEDIR)/mkinstalldirs /usr/local/include/wx_opengl
49 @echo " Copying headers from /include/wx"
50 @cd $(WXBASEDIR)/utils/glcanvas/src ; \
52 rm -f /usr/local/include/wx_opengl/$$f ; \
53 $(INSTALL_DATA) $$f /usr/local/include/wx_opengl/$$f ; \
55 @echo " Copying static library files to /usr/local/lib"
56 @cd $(WXBASEDIR)/lib/$(OS) ; \
57 for f in libwx_opengl_gtk.a ; do \
58 rm -f /usr/local/lib/$$f ; \
59 $(INSTALL_DATA) $$f /usr/local/lib/$$f ; \
61 @echo " Copying shared libraries to /usr/local/lib"
62 @cd $(WXBASEDIR)/lib/$(OS) ; \
63 for f in libwx_opengl_gtk.so* ; do \
64 rm -f /usr/local/lib/$$f ; \
65 $(INSTALL_PROGRAM) $$f /usr/local/lib/$$f ; \