1 # progs/xdemos/Makefile
4 include $(TOP
)/configs
/current
7 INCDIR
= $(TOP
)/include
9 LIB_DEP
= $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
11 LIBS
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
38 # Don't build these by default because of extra library dependencies
52 $(CC
) -I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
64 -rm -f
$(PROGS
) $(EXTRA_PROGS
)
69 pbinfo
: pbinfo.o pbutil.o
70 $(CC
) $(LDFLAGS
) pbinfo.o pbutil.o
$(LIBS
) -o
$@
72 pbdemo
: pbdemo.o pbutil.o
73 $(CC
) $(LDFLAGS
) pbdemo.o pbutil.o
$(LIBS
) -o
$@
75 pbinfo.o
: pbinfo.c pbutil.h
76 $(CC
) -c
-I.
-I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) pbinfo.c
78 pbdemo.o
: pbdemo.c pbutil.h
79 $(CC
) -c
-I.
-I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) pbdemo.c
81 pbutil.o
: pbutil.c pbutil.h
82 $(CC
) -c
-I.
-I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) pbutil.c
84 glxgears_fbconfig
: glxgears_fbconfig.o pbutil.o
85 $(CC
) $(LDFLAGS
) glxgears_fbconfig.o pbutil.o
$(LIBS
) -o
$@
87 glxgears_fbconfig.o
: glxgears_fbconfig.c pbutil.h
88 $(CC
) -I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) -c
-I.
$(CFLAGS
) glxgears_fbconfig.c
90 xrotfontdemo
: xrotfontdemo.o xuserotfont.o
91 $(CC
) $(LDFLAGS
) xrotfontdemo.o xuserotfont.o
$(LIBS
) -o
$@
93 xuserotfont.o
: xuserotfont.c xuserotfont.h
94 $(CC
) -c
-I.
-I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) xuserotfont.c
96 xrotfontdemo.o
: xrotfontdemo.c xuserotfont.h
97 $(CC
) -c
-I.
-I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) xrotfontdemo.c
99 corender
: corender.o ipc.o
100 $(CC
) $(CFLAGS
) corender.o ipc.o
$(LIBS
) -o
$@
102 corender.o
: corender.c ipc.h
103 $(CC
) -c
-I.
-I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) corender.c
106 $(CC
) -c
-I.
-I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) ipc.c
108 yuvrect_client
: yuvrect_client.c
109 $(CC
) -I
$(INCDIR
) $(X11_INCLUDES
) $(CFLAGS
) $< $(LDFLAGS
) $(LIBS
) -l
$(GLU_LIB
) -o
$@