diff options
author | George Sapountzis <[email protected]> | 2008-05-21 18:21:50 +0300 |
---|---|---|
committer | George Sapountzis <[email protected]> | 2008-05-21 18:21:50 +0300 |
commit | 2217158c3774ca3bb2b66af2b86f7fc8212c2465 (patch) | |
tree | 14eba39188e5da9a304e42d645c4177d0326d7bf /src/mesa | |
parent | 53784e786da69296020914c508905a9cf14b490d (diff) |
dri/swrast: use Makefile.template
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/swrast/Makefile | 62 |
1 files changed, 6 insertions, 56 deletions
diff --git a/src/mesa/drivers/dri/swrast/Makefile b/src/mesa/drivers/dri/swrast/Makefile index eb58f4c7338..5f3a4f2191b 100644 --- a/src/mesa/drivers/dri/swrast/Makefile +++ b/src/mesa/drivers/dri/swrast/Makefile @@ -10,65 +10,15 @@ DRIVER_SOURCES = \ swrast_span.c C_SOURCES = \ - $(COMMON_SOURCES) \ + $(SWRAST_COMMON_SOURCES) \ $(DRIVER_SOURCES) -######################################## +ASM_SOURCES = -MESA_MODULES = $(TOP)/src/mesa/libmesa.a - -COMMON_SOURCES = \ - ../../common/driverfuncs.c - -ifeq ($(WINDOW_SYSTEM),dri) -COMMON_SOURCES += \ +SWRAST_COMMON_SOURCES = \ + ../../common/driverfuncs.c \ ../common/utils.c -endif - -OBJECTS = $(C_SOURCES:.c=.o) - -### Include directories -INCLUDES = \ - -I. \ - -I$(TOP)/include \ - -I$(TOP)/src/mesa \ - -I$(TOP)/src/mesa/main \ - -I$(TOP)/src/mesa/glapi - -ifeq ($(WINDOW_SYSTEM),dri) -INCLUDES += \ - -I$(TOP)/src/mesa/drivers/dri/common \ - $(LIBDRM_CFLAGS) -endif - -##### RULES ##### - -.c.o: - $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@ - - -##### TARGETS ##### - -default: depend $(LIBNAME) - - -$(LIBNAME): $(OBJECTS) $(MESA_MODULES) Makefile - $(TOP)/bin/mklib -ldflags '$(LDFLAGS)' -noprefix -o $@ \ - $(OBJECTS) $(MESA_MODULES) $(GLCORE_LIB_DEPS) - - -depend: $(C_SOURCES) - touch depend - $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) \ - > /dev/null - - -clean: - -rm -f *.o *.so - -rm -f depend depend.bak -install: $(LIBNAME) - $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR) - $(INSTALL) -m 755 $(LIBNAME) $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR) +include ../Makefile.template -include depend +symlinks: |