diff options
author | Brian Paul <[email protected]> | 2004-03-26 15:19:11 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-03-26 15:19:11 +0000 |
commit | de0ee3187c8fffb52327f9a5680a3eafea872276 (patch) | |
tree | 69ca2969c64ddd79910f0783639d4c7bd65df792 /src/glut/mini/Makefile | |
parent | a70ad91209b08ebe7122ace6d6656b11d9b04542 (diff) |
New Makefile system
Diffstat (limited to 'src/glut/mini/Makefile')
-rw-r--r-- | src/glut/mini/Makefile | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/glut/mini/Makefile b/src/glut/mini/Makefile new file mode 100644 index 00000000000..5c0f5f7fb66 --- /dev/null +++ b/src/glut/mini/Makefile @@ -0,0 +1,80 @@ +# subset glut + +TOP = ../../.. +include $(TOP)/configs/current + +MARK = $(TOP)/src/glut/glx + +GLUT_MAJOR = 3 +GLUT_MINOR = 7 +GLUT_TINY = 1 + +INCLUDES = -I$(TOP)/include -I$(MARK) + +CORE_SOURCES = \ + bitmap.c \ + callback.c \ + color.c \ + globals.c \ + init.c \ + menu.c \ + models.c \ + overlay.c \ + state.c \ + teapot.c \ + window.c + + +MARK_SOURCES = \ + $(MARK)/glut_8x13.c \ + $(MARK)/glut_9x15.c \ + $(MARK)/glut_hel10.c \ + $(MARK)/glut_hel12.c \ + $(MARK)/glut_hel18.c \ + $(MARK)/glut_tr10.c \ + $(MARK)/glut_tr24.c + +SOURCES = $(CORE_SOURCES) $(MARK_SOURCES) + +OBJECTS = $(SOURCES:.c=.o) + + +##### RULES ##### + +.c.o: + $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@ + +.S.o: + $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@ + + +##### TARGETS ##### + +default: depend $(LIB_DIR)/$(GLUT_LIB_NAME) + + +# Make the library +$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS) + $(TOP)/bin/mklib -o $(GLUT_LIB) \ + -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) \ + -patch $(GLUT_TINY) $(GLUT_LIB_DEPS) -install $(LIB_DIR) \ + $(MKLIB_OPTIONS) $(OBJECTS) + + +# Run 'make -f Makefile.solo dep' to update the dependencies if you change +# what's included by any source file. +depend: $(SOURCES) + touch depend + makedepend -fdepend -Y $(INCLUDES) $(SOURCES) >& /dev/null + +# Emacs tags +tags: + etags `find . -name \*.[ch]` `find ../include` + + +# Remove .o and backup files +clean: depend + -rm -f depend + -rm -f *.o *~ *.o *~ *.so libglut.so.3.7 + +include depend |