1 ###----------------------------------------------
2 ### Makefile for OctaneMech
3 ### Camera movement demo (C Version)
7 ###----------------------------------------------
17 INCLUDE
= -I
/usr
/include/
18 LIBDIR
= -L
/usr
/X11R6
/lib
21 #LIBDIR = -L. -L/usr/lib/w32api
24 CFLAGS
= $(COMPILERFLAGS
) $(INCLUDE
)
26 LIBS
=-lX11
-lXi
-lXmu
-lglut
-lGL
-lGLU
-lm
27 #---------------------------------------
28 # Use the following on cygwin: ls /usr/lib/w32api/*gl*
29 #---------------------------------------
34 ### Compile based on the variables and targets below
37 $(GCC
) -O
-I.
$(INCLUDE
) -c
-Wall
-o
$@
$<
39 $(OCTANE_MECH
): $(OBJS
)
40 $(GCC
) $(CFLAGS
) -o
$@
$(OBJS
) $(LIBDIR
) $(LIBS
)
46 rm -vf
*.o
*.hi
*.prof
${OCTANE_MECH}
48 ###----------------------------------------------
50 ###----------------------------------------------