2 # wGLCanvas 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
24 # define library sources
28 basic.cpp basic2.cpp bmpshape.cpp canvas.cpp \
29 composit.cpp divided.cpp drawn.cpp lines.cpp \
30 mfutils.cpp misc.cpp ogldiag.cpp
32 #define library objects
35 $(LIB_CPP_SRC:.cpp=.o)
41 #additional things needed for compile
44 # include the definitions now
45 include ../../../../template.mak
48 @echo "Installing library files and headers for libwx_ogl_gtk.."
49 @echo " Creating directory.."
50 @$(WXBASEDIR)/mkinstalldirs /usr/local/include/wx_ogl
51 @echo " Copying headers from /include/wx"
52 @cd $(WXBASEDIR)/utils/ogl/src ; \
54 rm -f /usr/local/include/wx_ogl/$$f ; \
55 $(INSTALL_DATA) $$f /usr/local/include/wx_ogl/$$f ; \
57 @echo " Copying static library files to /usr/local/lib"
58 @cd $(WXBASEDIR)/lib/$(OS) ; \
59 for f in libwx_ogl_gtk.a ; do \
60 rm -f /usr/local/lib/$$f ; \
61 $(INSTALL_DATA) $$f /usr/local/lib/$$f ; \
63 @echo " Copying shared libraries to /usr/local/lib"
64 @cd $(WXBASEDIR)/lib/$(OS) ; \
65 for f in libwx_ogl_gtk.so* ; do \
66 rm -f /usr/local/lib/$$f ; \
67 $(INSTALL_PROGRAM) $$f /usr/local/lib/$$f ; \