-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 887 Bytes
/
Makefile
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
# Makefile for Plateau Border Program 'plat'
CC = gcc
RM = rm
MV = mv
OBJ = xplat.o plinit.o plequil.o pldiffus.o plminor.o plio.o mgl.o
SRC = xplat.c plinit.c plequil.c pldiffus.c plminor.c plio.c mgl.c
P_OBJ = plat.o plinit.o plequil.o pldiffus.o plminor.o plio.o mgl.o
P_SRC = plat.c plinit.c plequil.c pldiffus.c plminor.c plio.c mgl.c
CFLAGS = -DDEBUG -g #-DFIXEDSEED
# for X11
GRAPHLIB= -L/usr/lib64 -lXm -lXt -lX11
plat: $(P_OBJ) include.h machine.h
$(CC) $(CFLAGS) $(P_OBJ) -lm -o plat
# xplat: $(OBJ) include.h machine.h
# $(CC) $(CFLAGS) $(OBJ) -L/usr/lib/X11R5 -lXm -lXt -lX11 -lm -o xplat
xplat: $(OBJ) include.h machine.h
$(CC) $(CFLAGS) $(OBJ) $(GRAPHLIB) -lm -o xplat
debug: $(OBJ) include.h machine.h
$(CC) -g $(CFLAGS) $(OBJ) $(GRAPHLIB) -lm -o xplat
.c.o:
$(CC) -c $(CFLAGS) $<
$(SRC): include.h
include.h: machine.h
clean:
rm $(OBJ) $(P_OBJ) xplat plat