4 include $(TOP
)/configs
/current
6 INCDIR
= $(TOP
)/include
8 OSMESA_LIBS
= -L
$(LIB_DIR
) -lglut
-lOSMesa
-lGLU
-lGL
$(APP_LIB_DEPS
)
10 OSMESA16_LIBS
= -L
$(LIB_DIR
) -lglut
-lOSMesa16
-lGLU
-lGL
$(APP_LIB_DEPS
)
12 OSMESA32_LIBS
= -L
$(LIB_DIR
) -lglut
-lOSMesa32
-lGLU
-lGL
$(APP_LIB_DEPS
)
14 LIB_DEP
= $(LIB_DIR
)/$(GL_LIB_NAME
) $(LIB_DIR
)/$(GLU_LIB_NAME
) $(LIB_DIR
)/$(GLUT_LIB_NAME
)
26 # make executable from .c file:
27 .c
: $(LIB_DEP
) readtex.o
28 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $< readtex.o
$(APP_LIB_DEPS
) -o
$@
33 default
: readtex.o
$(PROGS
)
36 readtex.c
: $(TOP
)/progs
/util
/readtex.c
39 readtex.h
: $(TOP
)/progs
/util
/readtex.h
42 readtex.o
: readtex.c readtex.h
43 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
46 showbuffer.c
: $(TOP
)/progs
/util
/showbuffer.c
49 showbuffer.h
: $(TOP
)/progs
/util
/showbuffer.h
52 showbuffer.o
: showbuffer.c showbuffer.h
53 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) showbuffer.c
56 # special case: need the -lOSMesa library:
58 $(CC
) -I
$(INCDIR
) $(CFLAGS
) osdemo.c
$(OSMESA_LIBS
) -o
$@
60 # another special case: need the -lOSMesa16 library:
62 $(CC
) -I
$(INCDIR
) $(CFLAGS
) osdemo16.c
$(OSMESA16_LIBS
) -o
$@
64 # another special case: need the -lOSMesa32 library:
66 $(CC
) -I
$(INCDIR
) $(CFLAGS
) osdemo32.c
$(OSMESA32_LIBS
) -o
$@
73 -rm -f readtex.
[ch
] showbuffer.
[ch
]