-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
116 lines (73 loc) · 2.67 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
SUBDIRS = GLUT_windows G_graphics OpenGL_graphics
EXTRA_DIST = Include/GS_graphics.h Include/graphics.h \
Include/graphics_base.h Include/graphics_prototypes.h \
Include/graphics_struct.h Include/random_order.h \
Include/save.h Include/GL/glut.h Include/GL/freeglut_std.h
noinst_LIBRARIES = libbicgl.a
# Adding a dummy source file to register is a work-around for a bug in
# automake, which does not (in version 1.4) allow linking together
# only objects in subdirectories.
libbicgl_a_SOURCES = dummy.c
dummy.c:
touch $@
CLEANFILES = dummy.c
libbicgl_a_LIBADD = $(OPENGL_X_OBJECTS)
PRINT_X_COLOURS = print_X_colours
GLX_SRC = GLX_windows/glx_windows.c \
GLX_windows/stored_font.c
GLUT_SRC = GLUT_windows/glut_windows.c \
GLUT_windows/copy_x_colours.c
X_SRC = X_windows/x_windows.c
GL_SRC = \
IrisGL_graphics/colour_def.c \
IrisGL_graphics/draw.c \
IrisGL_graphics/event_loop.c \
IrisGL_graphics/lights.c \
IrisGL_graphics/render.c \
IrisGL_graphics/view.c \
IrisGL_graphics/windows.c
OPENGL_SRC = \
OpenGL_graphics/colour_def.c \
OpenGL_graphics/draw.c \
OpenGL_graphics/event_loop.c \
OpenGL_graphics/lights.c \
OpenGL_graphics/render.c \
OpenGL_graphics/view.c \
OpenGL_graphics/windows.c
G_SRC = G_graphics/draw.c \
G_graphics/draw_objects.c \
G_graphics/event_loop.c \
G_graphics/graphics_structs.c \
G_graphics/lights.c \
G_graphics/random_order.c \
G_graphics/render.c \
G_graphics/view.c \
G_graphics/windows.c
#OPENGL_X_SRC = $(G_SRC) $(OPENGL_SRC) $(GLX_SRC) $(X_SRC)
OPENGL_X_SRC = $(G_SRC) $(OPENGL_SRC) $(GLUT_SRC)
OPENGL_X_OBJECTS = $(OPENGL_X_SRC:.c=.o)
#-----
MAKE_PROTOTYPES = echo make_prototypes
PROTOTYPE_FILE = Include/graphics_prototypes.h
$(PROTOTYPE_FILE): $(G_SRC)
@$(MAKE_PROTOTYPES) $@ $(G_SRC)
#-----
X_PROTOTYPE_FILE = X_windows/Include/x_window_prototypes.h
$(X_PROTOTYPE_FILE): $(X_SRC)
@$(MAKE_PROTOTYPES) $@ $(X_SRC)
#-----
GLX_PROTOTYPE_FILE = GLX_windows/Include/glx_window_prototypes.h
$(GLX_PROTOTYPE_FILE): $(GLX_SRC)
@$(MAKE_PROTOTYPES) $@ $(GLX_SRC)
#-----
GLUT_PROTOTYPE_FILE = GLUT_windows/Include/glut_window_prototypes.h
$(GLUT_PROTOTYPE_FILE): $(GLUT_SRC)
@$(MAKE_PROTOTYPES) $@ $(GLUT_SRC)
#-----
OPENGL_PROTOTYPE_FILE = OpenGL_graphics/Include/opengl_graphics_prototypes.h
$(OPENGL_PROTOTYPE_FILE): $(OPENGL_SRC)
@$(MAKE_PROTOTYPES) $@ $(OPENGL_SRC)
#-----
GL_PROTOTYPE_FILE = IrisGL_graphics/Include/irisgl_graphics_prototypes.h
$(GL_PROTOTYPE_FILE): $(GL_SRC)
@$(MAKE_PROTOTYPES) $@ $(GL_SRC)