4 include $(TOP
)/configs
/current
6 INCDIR
= $(TOP
)/include
8 LIB_DEP
= $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) $(TOP
)/$(LIB_DIR
)/$(GLU_LIB_NAME
) $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
)
26 # make executable from .c file:
28 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $< $(APP_LIB_DEPS
) -o
$@
37 ##### Extra dependencies
39 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
42 readtex.c
: $(TOP
)/progs
/util
/readtex.c
45 readtex.h
: $(TOP
)/progs
/util
/readtex.h
48 readtex.o
: readtex.c readtex.h
49 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
55 mandelbrot.c
: extfuncs.h
59 texdemo1
: texdemo1.o readtex.o
60 $(CC
) -I
$(INCDIR
) $(CFLAGS
) texdemo1.o readtex.o
$(APP_LIB_DEPS
) -o
$@
62 texdemo1.o
: texdemo1.c readtex.h extfuncs.h
63 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c