summaryrefslogtreecommitdiff
path: root/src/glw/Makefile.X11
blob: c392c07c2796c2594301bce2f2ecd4df01c05de2 (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
# Makefile for OpenGL widgets

# NOTE: widget code is from SGI.  See any of the .c or .h files for the
# complete copyright.  Mesa's GNU copyright DOES NOT apply to this widget
# code.


##### MACROS #####

MAJOR = 1
MINOR = 0
TINY = 0

VPATH = RCS

INCDIRS = -I../include -I/usr/include/Motif1.2 -I/usr/X11R6/include
LIBDIR = ../lib

# Compile GLwMDrawA.c only if you have Motif headers!
#SOURCES = GLwDrawA.c GLwMDrawA.c
SOURCES = GLwDrawA.c


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



##### RULES #####

.c.o:
	$(CC) -c $(INCDIRS) $(CFLAGS) $<



##### TARGETS #####

default:
	@echo "Specify a target configuration"

clean:
	-rm *.o *~

targets: $(LIBDIR)/$(GLW_LIB) message


# Make the library
$(LIBDIR)/$(GLW_LIB): $(OBJECTS)
	$(MAKELIB) $(GLW_LIB) $(MAJOR) $(MINOR) $(TINY) $(OBJECTS)
	mv $(GLW_LIB)* $(LIBDIR)
	-mv *.a $(LIBDIR)


message:
	@echo
	@echo "************************************************************************"
	@echo "*** Edit widgets-sgi/Makefile.X11 to enable Motif support, if needed ***"
	@echo "************************************************************************"
	@echo


include ../Make-config

include depend



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