WIP - port to Mali EGL
[mesa-demos/mali.git] / src / fbdev / Makefile
blobe935a519c36a769af59ae1794634678e112d1730
1 # Makefile for miniglx demo programs
3 TOP = ../..
5 include $(TOP)/configs/current
8 SOURCES = glfbdevtest.c
10 OBJECTS = $(SOURCES:.c=.o)
12 PROGS = $(SOURCES:%.c=%)
14 INCLUDES = \
15 -I. \
16 -I$(TOP)/include
18 LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
20 ##### RULES #####
22 .SUFFIXES:
23 .SUFFIXES: .c
25 .c:
26 $(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
28 .c.o:
29 $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
31 .S.o:
32 $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
35 ##### TARGETS #####
37 default: depend $(PROGS)
39 clean:
40 -rm -f $(PROGS)
41 -rm -f *.o
44 depend: $(SOURCES)
45 rm -f depend
46 touch depend
47 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null
50 # Emacs tags
51 tags:
52 etags `find . -name \*.[ch]` `find ../include`
55 include depend