Probably need to fix the install destinations too...
install:
$(INSTALL) -d $(INSTALL_DIR)/lib
- $(COPY_LIBS) $(TOP)/lib/libGLU.* $(INSTALL_DIR)/lib
+ $(COPY_LIBS) $(LIB_DIR)/libGLU.* $(INSTALL_DIR)/lib
clean:
@for dir in $(SUBDIRS) ; do \
$(INSTALL) -d $(INSTALL_DIR)/include/GL
$(INSTALL) -d $(INSTALL_DIR)/lib
$(INSTALL) -m 644 $(TOP)/include/GL/glut.h $(INSTALL_DIR)/include/GL
- $(COPY_LIBS) $(TOP)/lib/libglut* $(INSTALL_DIR)/lib
+ $(COPY_LIBS) $(LIB_DIR)/libglut* $(INSTALL_DIR)/lib
clean:
$(INSTALL) -d $(INSTALL_DIR)/include/GL
$(INSTALL) -d $(INSTALL_DIR)/lib
$(INSTALL) -m 644 *.h $(INSTALL_DIR)/include/GL
- $(COPY_LIBS) $(TOP)/lib/libGLw.* $(INSTALL_DIR)/lib
+ $(COPY_LIBS) $(LIB_DIR)/libGLw.* $(INSTALL_DIR)/lib
clean:
-rm depend depend.bak
$(INSTALL) -d $(INSTALL_DIR)/include/GL
$(INSTALL) -d $(INSTALL_DIR)/lib
$(INSTALL) -m 644 $(TOP)/include/GL/*.h $(INSTALL_DIR)/include/GL
- $(COPY_LIBS) $(TOP)/lib/libGL.* $(INSTALL_DIR)/lib
+ $(COPY_LIBS) $(LIB_DIR)/libGL.* $(INSTALL_DIR)/lib
@if [ "${DRIVER_DIRS}" = "dri" ] ; then \
cd drivers/dri ; $(MAKE) install ; \
fi
# Mesa DirectFBGL module
directfbgl_mesa: $(DIRECTFBGL_MESA_OBJECTS)
$(CC) -shared $(CFLAGS) $(DIRECTFBGL_MESA_OBJECTS) -o $(DIRECTFBGL_MESA) \
- -Wl,-soname -Wl,$(DIRECTFBGL_MESA) -L$(TOP)/lib -lGL -lm
+ -Wl,-soname -Wl,$(DIRECTFBGL_MESA) -L$(LIB_DIR) -lGL -lm
install:
$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
- install $(LIBNAME) $(LIB_DIR)
+ $(INSTALL) $(LIBNAME) $(LIB_DIR)