######################################################################
# Linux solo DRI drivers
-SOLO_SOURCES = \
+SOLO_C_SOURCES = \
$(MAIN_SOURCES) \
$(MATH_SOURCES) \
$(ARRAY_CACHE_SOURCES) \
$(TNL_SOURCES) \
$(SWRAST_SOURCES) \
$(SWRAST_SETUP_SOURCES) \
- $(ASM_C_SOURCES) \
- $(X86_SOURCES)
+ $(SHADER_SOURCES) \
+ $(ASM_C_SOURCES)
-SOLO_OBJECTS = $(SOLO_SOURCES:.c=.o)
+SOLO_OBJECTS = $(SOLO_C_SOURCES:.c=.o) \
+ $(ASM_SOURCES:.S=.o)
-linux-solo: depend mesa.a driver-dirs
+linux-solo: depend subdirs mesa.a driver-dirs
# Make archive of core object files
mesa.a: $(SOLO_OBJECTS)
ar rcv $@ $(SOLO_OBJECTS)
ranlib $@
+# note: cannot use the name of the directory ("drivers") as the
+# target, otherwise make will look & see that the "drivers" directory
+# already exists, so not try to rebuild it...
driver-dirs:
cd drivers/dri ; make
$(MATH_SOURCES) \
$(ARRAY_CACHE_SOURCES) \
$(TNL_SOURCES) \
+ $(SHADER_SOURCES) \
$(SWRAST_SOURCES) \
$(SWRAST_SETUP_SOURCES) \
$(ASM_C_SOURCES) \
clean:
-rm -f */*.o
- rm -f depend
+ rm -f depend mesa.a
for dir in $(SUBDIRS) ; do \
(cd $$dir ; make clean) ; \
done