1 TOP = ../../../.. 2 include $(TOP)/configs/current 3 4 ##### MACROS ##### 5 6 XA_CFLAGS = -Wall -pedantic 7 8 XA_INCLUDES= -I$(TOP)/src/gallium/ \ 9 -I$(TOP)/src/gallium/auxiliary \ 10 -I$(TOP)/src/gallium/include \ 11 -I$(TOP)/src/gallium/winsys \ 12 -I$(TOP)/src/gallium/drivers 13 14 XA_LIB = xatracker 15 XA_LIB_NAME = lib$(XA_LIB).o 16 XA_LIB_DEPS = 17 18 COMMON_GALLIUM_SOURCES= 19 20 SOURCES = \ 21 xa_tracker.c \ 22 xa_context.c \ 23 xa_renderer.c \ 24 xa_tgsi.c \ 25 xa_yuv.c \ 26 xa_composite.c 27 OBJECTS = $(SOURCES:.c=.o) 28 29 ##### RULES ##### 30 31 .c.o: 32 $(CC) -c $(XA_CFLAGS) $(CFLAGS) $(XA_INCLUDES) $< 33 34 35 ##### TARGETS ##### 36 37 default: $(XA_LIB_NAME) 38 39 40 # Make the library 41 $(XA_LIB_NAME): depend $(OBJECTS) 42 $(CC) -Wl,-r -nostdlib -o $(XA_LIB_NAME) $(OBJECTS) $(CFLAGS) 43 44 install: FORCE 45 46 clean: 47 -rm -f *.o *~ 48 -rm -f *.lo 49 -rm -f *.la 50 -rm -f *.pc 51 -rm -rf .libs 52 -rm -f depend depend.bak 53 54 55 depend: $(SOURCES) 56 @ echo "running $(MKDEP)" 57 @ rm -f depend 58 @ touch depend 59 @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(XA_INCLUDES) $(SOURCES) \ 60 > /dev/null 61 62 -include depend 63 64 FORCE: 65