1 # Makefile for GLUT 2 # 3 # NOTICE: The OpenGL Utility Toolkit (GLUT) distribution contains source 4 # code published in a book titled "Programming OpenGL for the X Window 5 # System" (ISBN: 0-201-48359-9) published by Addison-Wesley. The 6 # programs and associated files contained in the distribution were 7 # developed by Mark J. Kilgard and are Copyright 1994, 1995, 1996 by Mark 8 # J. Kilgard (unless otherwise noted). The programs are not in the 9 # public domain, but they are freely distributable without licensing 10 # fees. These programs are provided without guarantee or warrantee 11 # expressed or implied. 12 # 13 # GLUT source included with Mesa with permission from Mark Kilgard. 14 15 # src/glut/beos/Makefile 16 17 TOP = ../../.. 18 include $(TOP)/configs/current 19 20 GLUT_MAJOR = 3 21 GLUT_MINOR = 7 22 GLUT_TINY = 1 23 24 CPP_SOURCES = \ 25 glutBlocker.cpp \ 26 glutInit.cpp \ 27 glutWindow.cpp \ 28 glutEvent.cpp \ 29 glutCallback.cpp \ 30 glutOverlay.cpp \ 31 glutGet.cpp \ 32 glutColor.cpp \ 33 glutCursor.cpp \ 34 glutMenu.cpp \ 35 glutDstr.cpp \ 36 beos_x11.cpp 37 38 C_SOURCES = \ 39 glut_8x13.c \ 40 glut_9x15.c \ 41 glut_bitmap.c \ 42 glut_bwidth.c \ 43 glut_hel10.c \ 44 glut_hel12.c \ 45 glut_hel18.c \ 46 glut_tr10.c \ 47 glut_tr24.c \ 48 glut_mroman.c \ 49 glut_roman.c \ 50 glut_stroke.c \ 51 glut_swidth.c \ 52 glut_shapes.c \ 53 glut_teapot.c \ 54 glut_vidresize.c \ 55 glut_util.c \ 56 glut_ext.c 57 58 OBJECTS = \ 59 $(CPP_SOURCES:.cpp=.o) \ 60 $(C_SOURCES:.c=.o) 61 62 INCLUDES = \ 63 -I. \ 64 -I- \ 65 -I$(TOP)/include 66 67 # Rules 68 69 .cpp.o: 70 $(CC) -c $< $(INCLUDES) $(CFLAGS) $(GLUT_CFLAGS) -o $@ 71 72 .c.o: 73 $(CC) -c $< $(INCLUDES) $(CFLAGS) $(GLUT_CFLAGS) -o $@ 74 75 76 # ---- TARGETS 77 78 default: $(TOP)/$(LIB_DIR) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME) 79 80 # Create the lib directory if missing 81 $(TOP)/$(LIB_DIR): 82 mkdir $(TOP)/$(LIB_DIR) 83 84 # Make the library 85 $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS) 86 @$(MKLIB) -o $(GLUT_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \ 87 -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \ 88 -install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \ 89 $(GLUT_LIB_DEPS) $(OBJECTS) 90 91 clean: 92 -rm -f *.o 93 94 depend: $(SOURCES) 95 touch depend 96 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null 97 98 include depend 99