generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·65 lines (43 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
CFLAGS = -g -DXWINDOWS -I/usr/X11/include
DEST = .
EXTHDRS =
HDRS =
INSTALL = /etc/install
LD = CC
LDFLAGS =
LDLIBS = /usr/X11/lib
MAKEFILE = Makefile
OBJS = main.o \
lgar_routines.o \
linked_list.o \
mem_funcs.o \
soil_funcs.o \
util_funcs.o \
xcategorize.o \
xinitialize.o \
xplot.o \
xshow.o
PRINT = pr
PROGRAM = xlgar
SHELL = /bin/sh
SRCS = main.c \
lgar_routines.c \
linked_list.c \
mem_funcs.c \
soil_funcs.c \
util_funcs.c \
xcategorize.c \
xinitialize.c \
xplot.c \
xshow.c
all: $(PROGRAM)
$(PROGRAM): $(OBJS) $(LDLIBS)
@echo "Linking $(PROGRAM)"
@$(LD) $(LDFLAGS) $(OBJS) -lc -lm -L/usr/X11R6/lib -lXt \
-L/usr/X11R6/lib -lX11 -L/$(LDLIBS) -o $(PROGRAM)
@echo "done"
clean:; @rm -f $(OBJS) core
clobber:; @rm -f $(OBJS) $(PROGRAM) core tags
depend:; @mkmf -f $(MAKEFILE) ROOT=$(ROOT)
echo:; @echo $(HDRS) $(SRCS)
index:; @ctags -wx $(HDRS) $(SRCS)