summaryrefslogtreecommitdiff
path: root/src/glut/ggi/Makefile
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-09-10 22:11:33 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-09-10 22:11:33 +0000
commit5cc7111f72cbdc2d29b03ad9d9f76dba40f6c27f (patch)
treea623bfed3eaafd7d90407b6f768ff290de5bb05c /src/glut/ggi/Makefile
parent0a55db041da463b5cccd19b999db7bd6db3adbdf (diff)
new file (bug 1026109)
Diffstat (limited to 'src/glut/ggi/Makefile')
-rw-r--r--src/glut/ggi/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/glut/ggi/Makefile b/src/glut/ggi/Makefile
new file mode 100644
index 0000000000..ebd8dc65e9
--- /dev/null
+++ b/src/glut/ggi/Makefile
@@ -0,0 +1,52 @@
+# Makefile for GLUT for ggi
+
+TOP = ../../..
+
+include $(TOP)/configs/current
+
+
+##### MACROS #####
+
+GLUT_MAJOR = 3
+GLUT_MINOR = 7
+GLUT_TINY = 1
+
+SOURCES = \
+ ggiglut.c
+
+
+OBJECTS = $(SOURCES:.c=.o)
+
+
+##### RULES #####
+
+.c.o:
+ $(CC) -c -I$(TOP)/include $(CFLAGS) $(GLUT_CFLAGS) $<
+
+
+
+##### TARGETS #####
+
+default: $(LIB_DIR)/$(GLUT_LIB_NAME)
+
+
+# Make the library
+$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS)
+ CC=$(CC) CXX=$(CXX) $(TOP)/bin/mklib -o $(GLUT_LIB) \
+ -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) \
+ -patch $(GLUT_TINY) $(MKLIB_OPTIONS) -install $(LIB_DIR) \
+ $(GLUT_LIB_DEPS) $(OBJECTS)
+
+
+clean:
+ -rm -f *.o *~
+ -rm -f *.lo
+ -rm -f *.la
+ -rm -rf .libs
+
+
+depend: $(SOURCES)
+ touch depend
+ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES)
+
+include depend