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