blob: 634d9786f265f7a480bfa3d1d518bb09a949d579 (
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
|
# Simple makefile for compiling test programs on Linux
# These programs aren't intended to be included with the normal
# distro as they're not too interesting but good for testing during
# development.
CC = gcc
CFLAGS = -c -g -I../include
LIBS = -L../lib -lglut -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXext -lm
PROGRAMS = manytex sharedtex
default: $(PROGRAMS)
clean:
rm -f $(PROGRAMS)
rm -f *.o
manytex: manytex.o
$(CC) manytex.o $(LIBS) -o $@
manytex.o: manytex.c
$(CC) $(CFLAGS) manytex.c
sharedtex: sharedtex.o
$(CC) sharedtex.o $(LIBS) -o $@
sharedtex.o: sharedtex.c
$(CC) $(CFLAGS) sharedtex.c
|