-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (29 loc) · 1.07 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
NAME = DGraphX
CC = gcc
LINK = gcc
DEBUG =
OPTIMAZE_COMMON = -O2
OPTIMAZE_SPECIFIC =
OPTIMAZE = $(OPTIMAZE_COMMON) $(OPTIMAZE_SPECIFIC)
WARNINGS = -W -Wall
INCLUDE_DIR = -I. -I/opt/X11/include
CFLAGS = -c $(DEBUG) $(OPTIMAZE) $(WARNINGS) $(INCLUDE_DIR)
LIB_DIR = -L. -L/opt/X11/lib
LIB = -lX11
LDFLAGS = $(DEBUG)
OBJS = Xfun.o DGraphX.o interpolation.o dtoa.o DX.o matrix.o
all: $(NAME)
$(NAME) : $(OBJS)
$(LINK) $(LDFLAGS) $(OBJS) $(LIB_DIR) $(LIB) -lm -o $(NAME)
clean:
rm -f $(OBJS) $(NAME)
.c.o:
$(CC) $(CFLAGS) $<
#-------------------------------------------------------------------------------
Xfun.o : Xfun.c DGraphX.h Interp2D.h
DGraphX.o : DGraphX.c DGraphX.h Interp2D.h matrix.h
interpolation.o : interpolation.c Interp2D.h DGraphX.h
dtoa.o : dtoa.c Interp2D.h DGraphX.h
DX.o : DX.c DGraphX.h matrix.h
matrix.o : matrix.c DGraphX.h matrix.h
#-------------------------------------------------------------------------------