1 # progs/xdemos/Makefile
4 include $(TOP
)/configs
/current
7 INCDIR
= $(TOP
)/include
9 LIB_DEP
= $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
11 # Add X11 and pthread libs to satisfy GNU gold.
12 APP_LIB_DEPS
+= -lX11
-lpthread
14 LIBS
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GL_LIB
) -L
$(libdir) $(APP_LIB_DEPS
)
46 # Don't build these by default because of extra library dependencies
57 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
60 $(APP_CC
) -I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) $< -c
-o
$@
67 $(PROGS
): $(PROGS
:%=%.o
)
73 -rm -f
$(PROGS
) $(EXTRA_PROGS
)
80 pbinfo
: pbinfo.o pbutil.o
81 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) pbinfo.o pbutil.o
$(LIBS
) -o
$@
84 pbdemo
: pbdemo.o pbutil.o
85 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) pbdemo.o pbutil.o
$(LIBS
) -o
$@
87 glxgears_fbconfig.o
: pbutil.h
88 glxgears_fbconfig
: glxgears_fbconfig.o pbutil.o
89 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) glxgears_fbconfig.o pbutil.o
$(LIBS
) -o
$@
91 xuserotfont.o
: xuserotfont.h
92 xrotfontdemo.o
: xuserotfont.h
93 xrotfontdemo
: xrotfontdemo.o xuserotfont.o
94 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) xrotfontdemo.o xuserotfont.o
$(LIBS
) -o
$@
98 corender
: corender.o ipc.o
99 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) corender.o ipc.o
$(LIBS
) -o
$@
101 yuvrect_client
: yuvrect_client.o
102 $(APP_CC
) $(CFLAGS
) $< $(LDFLAGS
) $(LIBS
) -l
$(GLU_LIB
) -o
$@