egl: clean-ups
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 6 Jun 2008 21:42:08 +0000 (15:42 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 6 Jun 2008 21:52:47 +0000 (15:52 -0600)
src/gallium/winsys/egl_xlib/Makefile

index fe4b931e3005c57e447f5cd315ed7737e21880c0..46666650b063527cfaf2478922f427be49b74991 100644 (file)
@@ -7,7 +7,7 @@ TOP = ../../../..
 include $(TOP)/configs/current
 
 
-LIBNAME = softpipe_egl.so
+DRIVER_NAME = softpipe_egl.so
 
 
 INCLUDE_DIRS = \
@@ -36,30 +36,28 @@ LIBS = \
 LOCAL_CFLAGS = -D_EGL_PLATFORM_X=1
 
 
-.SUFFIXES : .cpp
-
 .c.o:
        $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@
 
-.cpp.o:
-       $(CXX) -c $(INCLUDE_DIRS) $(CXXFLAGS) $(LOCAL_CFLAGS) $< -o $@
+
+.PHONY: library
 
 
+default: depend library Makefile
 
-default: $(TOP)/$(LIB_DIR)/$(LIBNAME)
+
+library: $(TOP)/$(LIB_DIR)/$(DRIVER_NAME)
 
 
 # Make the softpipe_egl.so library
-$(TOP)/$(LIB_DIR)/$(LIBNAME): $(WINSYS_OBJECTS) $(LIBS)
-       $(TOP)/bin/mklib -o $(LIBNAME) \
+$(TOP)/$(LIB_DIR)/$(DRIVER_NAME): $(WINSYS_OBJECTS) $(LIBS)
+       $(TOP)/bin/mklib -o $(DRIVER_NAME) \
                -linker "$(CC)" \
                -noprefix \
                -install $(TOP)/$(LIB_DIR) \
                $(MKLIB_OPTIONS) $(WINSYS_OBJECTS) \
                --start-group $(LIBS) --end-group
 
-# $(GL_LIB_DEPS)
-
 
 depend: $(ALL_SOURCES)
        @ echo "running $(MKDEP)"
@@ -72,7 +70,7 @@ depend: $(ALL_SOURCES)
 install: default
        $(INSTALL) -d $(INSTALL_DIR)/$(LIB_DIR)
        @if [ -e $(TOP)/$(LIB_DIR) ]; then \
-               $(INSTALL) $(TOP)/$(LIB_DIR)/$(LIBNAME) $(INSTALL_DIR)/$(LIB_DIR); \
+               $(INSTALL) $(TOP)/$(LIB_DIR)/$(DRIVER_NAME) $(INSTALL_DIR)/$(LIB_DIR); \
        fi