Initial Import
[glAntsMech.git] / octanemech / src / misc / textmenu / csrc / Makefile
blob91bdb492b3ed950534b7c93f887661e49852fc58
1 ###----------------------------------------------
2 ### Makefile for OctaneMech
3 ### Camera movement demo (C Version)
4 ### Berlin Brown
5 ###
6 ### 9/27/2007
7 ###----------------------------------------------
9 OCTANE_MECH=mechtext
11 OBJS = \
12 MechTextDemo.o \
13 TextData.o \
15 COMPILERFLAGS = -Wall
17 INCLUDE = -I/usr/include/
18 LIBDIR = -L/usr/X11R6/lib
20 #INCLUDE = -I.
21 #LIBDIR = -L. -L/usr/lib/w32api
23 GCC = gcc
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 #---------------------------------------
31 all: ${OCTANE_MECH}
33 ###
34 ### Compile based on the variables and targets below
35 ###
36 .c.o:
37 $(GCC) -O -I. $(INCLUDE) -c -Wall -o $@ $<
39 $(OCTANE_MECH): $(OBJS)
40 $(GCC) $(CFLAGS) -o $@ $(OBJS) $(LIBDIR) $(LIBS)
42 ###
43 ### Target Clean
44 ###
45 clean:
46 rm -vf *.o *.hi *.prof ${OCTANE_MECH}
48 ###----------------------------------------------
49 ### End of the Script
50 ###----------------------------------------------