summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/Makefile.DJ
blob: 4eaafa607943011edd79d19af4cf410c8c01a4e4 (plain)
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# $Id: Makefile.DJ,v 1.10 2001/03/28 17:19:58 brianp Exp $

# Mesa 3-D graphics library
# Version:  3.5
# Copyright (C) 1995-2001  Brian Paul

# Makefile for core library for MS-DOS using djgpp


##### MACROS #####

VPATH = RCS

INCDIR = ..\include
LIBDIR = ..\lib

# Want UniVBE (Display Doctor) Support, Scitech Software www.scitechsoft.com
# Set -I to point to scitech include files.
# Haven`t finished doing univbe version for djgpp
#CFLAGS += -DUNIVBE -D__DOS__ -D__MSDOS32__ -IC:\scitech\include
CFLAGS +=  -D__DOS__ -D__MSDOS32__

CORE_SOURCES = \
	aatriangle.c \
	accum.c \
	alpha.c \
	alphabuf.c \
	attrib.c \
	bbox.c \
	bitmap.c \
	blend.c \
	buffers.c \
	clip.c \
	colortab.c \
	config.c \
	context.c \
	convolve.c \
	copypix.c \
	cva.c \
	debug_xform.c \
	depth.c \
	dispatch.c \
	dlist.c \
	drawpix.c \
	enable.c \
	enums.c \
	eval.c \
	extensions.c \
	feedback.c \
	fog.c \
	get.c \
	glapi.c \
	glthread.c \
	hash.c \
	hint.c \
	image.c \
	imaging.c \
	imports.c \
	light.c \
	lines.c \
	logic.c \
	masking.c \
	matrix.c \
	mem.c \
	mmath.c \
	pb.c \
	pixel.c \
	pixeltex.c \
	pipeline.c \
	points.c \
	polygon.c \
	quads.c \
	rastpos.c \
	readpix.c \
	rect.c \
	scissor.c \
	shade.c \
	span.c \
	stages.c \
	state.c \
	stencil.c \
	teximage.c \
	texobj.c \
	texstate.c \
	texture.c \
	texutil.c \
	translate.c \
	triangle.c \
	varray.c \
	vb.c \
	vbcull.c \
	vbfill.c \
	vbindirect.c \
	vbrender.c \
	vbxform.c \
	vector.c \
	vertices.c \
	winpos.c \
	xform.c \
	zoom.c


DRIVER_SOURCES = DOS\dosmesa.c

SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)

OBJECTS = $(SOURCES:.c=.o)

#CFLAGS += -g

##### RULES #####

.c.o:
	gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<

##### TARGETS #####

GL_LIB = dosmesa.a

default: $(LIBDIR)/$(GL_LIB)

clean:
	-del *.o

MAKELIB = AR ruv
RANLIB = ls

# Make the library
$(LIBDIR)/$(GL_LIB): $(OBJECTS)
	$(MAKELIB) $(GL_LIB) $(OBJECTS)
	copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)

include depend.dos
#

# Run 'make depend' to update the dependencies if you change what's included
# by any source file.
#
dep: $(SOURCES)
	makedep -fdepend -Y -I../include $(SOURCES)