# # wGLCanvas source makefile for Unix # # Copyright 1998, Robert Roebling # # wxWindows base directory WXBASEDIR=@WXBASEDIR@ # set the OS type for compilation OS=@OS@ # compile a library only RULE=gslib # needed for unactivated NONE= # define library name LIB_TARGET=wx_opengl_gtk LIB_MAJOR=0 LIB_MINOR=1 # define library sources LIB_CPP_SRC= \ \ glcanvas.cpp #define library objects LIB_OBJ= \ \ $(LIB_CPP_SRC:.cpp=.o) all:: clean:: #additional things needed for compile ADD_COMPILE= # include the definitions now include ../../../../template.mak install:: @echo "Installing library files and headers for libwx_opengl_gtk.." @echo " Creating directory.." @$(WXBASEDIR)/mkinstalldirs /usr/local/include/wx_opengl @echo " Copying headers from /include/wx" @cd $(WXBASEDIR)/utils/glcanvas/src ; \ for f in *.h ; do \ rm -f /usr/local/include/wx_opengl/$$f ; \ $(INSTALL_DATA) $$f /usr/local/include/wx_opengl/$$f ; \ done @echo " Copying static library files to /usr/local/lib" @cd $(WXBASEDIR)/lib/$(OS) ; \ for f in libwx_opengl_gtk.a ; do \ rm -f /usr/local/lib/$$f ; \ $(INSTALL_DATA) $$f /usr/local/lib/$$f ; \ done @echo " Copying shared libraries to /usr/local/lib" @cd $(WXBASEDIR)/lib/$(OS) ; \ for f in libwx_opengl_gtk.so* ; do \ rm -f /usr/local/lib/$$f ; \ $(INSTALL_PROGRAM) $$f /usr/local/lib/$$f ; \ done