Makefile revision ed5ce78b8146a485f418a3ca06e545ab297f6f93
1# progs/gallium/simple/Makefile 2 3TOP = ../../../.. 4include $(TOP)/configs/current 5 6INCLUDES = \ 7 -I. \ 8 -I$(TOP)/src/gallium/include \ 9 -I$(TOP)/src/gallium/auxiliary \ 10 -I$(TOP)/src/gallium/drivers \ 11 -I$(TOP)/src/gallium/winsys \ 12 $(PROG_INCLUDES) 13 14LINKS = \ 15 $(TOP)/src/gallium/drivers/rbug/librbug.a \ 16 $(TOP)/src/gallium/drivers/trace/libtrace.a \ 17 $(TOP)/src/gallium/drivers/galahad/libgalahad.a \ 18 $(TOP)/src/gallium/winsys/sw/null/libws_null.a \ 19 $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \ 20 $(GALLIUM_AUXILIARIES) \ 21 $(PROG_LINKS) 22 23SOURCES = \ 24 tri.c \ 25 quad-tex.c 26 27OBJECTS = $(SOURCES:.c=.o) 28 29PROGS = $(OBJECTS:.o=) 30 31PROG_DEFINES = \ 32 -DGALLIUM_SOFTPIPE -DGALLIUM_RBUG -DGALLIUM_TRACE -DGALLIUM_GALAHAD 33 34##### TARGETS ##### 35 36default: $(PROGS) 37 38clean: 39 -rm -f $(PROGS) 40 -rm -f *.o 41 -rm -f result.bmp 42 43##### RULES ##### 44 45$(OBJECTS): %.o: %.c 46 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $(PROG_DEFINES) $< -o $@ 47 48$(PROGS): %: %.o $(LINKS) 49 $(CC) $(LDFLAGS) $< $(LINKS) -lm -lpthread -ldl -o $@ 50