Assorted mklib tweaks.
[mesa.git] / src / glut / glx / Makefile.X11
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
16 ##### MACROS #####
17
18 GLUT_MAJOR = 3
19 GLUT_MINOR = 7
20 GLUT_TINY = 1
21
22 VPATH = RCS
23
24 TOP = ../../..
25 INCDIR = $(TOP)/include
26 LIBDIR = $(TOP)/lib
27
28 SOURCES = \
29 glut_8x13.c \
30 glut_9x15.c \
31 glut_bitmap.c \
32 glut_bwidth.c \
33 glut_cindex.c \
34 glut_cmap.c \
35 glut_cursor.c \
36 glut_dials.c \
37 glut_dstr.c \
38 glut_event.c \
39 glut_ext.c \
40 glut_fbc.c \
41 glut_fullscrn.c \
42 glut_gamemode.c \
43 glut_get.c \
44 glut_glxext.c \
45 glut_hel10.c \
46 glut_hel12.c \
47 glut_hel18.c \
48 glut_init.c \
49 glut_input.c \
50 glut_joy.c \
51 glut_key.c \
52 glut_keyctrl.c \
53 glut_keyup.c \
54 glut_menu.c \
55 glut_menu2.c \
56 glut_mesa.c \
57 glut_modifier.c \
58 glut_mroman.c \
59 glut_overlay.c \
60 glut_roman.c \
61 glut_shapes.c \
62 glut_space.c \
63 glut_stroke.c \
64 glut_swap.c \
65 glut_swidth.c \
66 glut_tablet.c \
67 glut_teapot.c \
68 glut_tr10.c \
69 glut_tr24.c \
70 glut_util.c \
71 glut_vidresize.c \
72 glut_warp.c \
73 glut_win.c \
74 glut_winmisc.c \
75 layerutil.c
76
77
78 OBJECTS = $(SOURCES:.c=.o)
79
80
81
82 ##### RULES #####
83
84 .c.o:
85 $(CC) -c -I$(INCDIR) $(CFLAGS) $(GLUT_CFLAGS) $<
86
87
88
89 ##### TARGETS #####
90
91 default:
92 @echo "Specify a target configuration"
93
94 clean:
95 -rm -f *.o *~
96 -rm -f *.lo
97 -rm -f *.la
98 -rm -rf .libs
99
100 targets: $(LIBDIR)/$(GLUT_LIB)
101
102 # Make the library
103 $(LIBDIR)/$(GLUT_LIB): $(OBJECTS)
104 $(TOP)/bin/mklib -o glut -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) \
105 -patch $(GLUT_TINY) $(GLUT_LIB_DEPS) -install $(LIBDIR) \
106 $(MKLIB_OPTIONS) $(OBJECTS)
107
108 include $(TOP)/Make-config
109
110 include depend
111
112
113
114 #
115 # Run 'make dep' to update the dependencies if you change what's included
116 # by any source file.
117 #
118 dep: $(SOURCES)
119 makedepend -fdepend -Y -I$(TOP)/include $(SOURCES)