File: Makefile

package info (click to toggle)
quickplot 0.4.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 352 kB
  • ctags: 276
  • sloc: ansic: 4,124; makefile: 124; sh: 12
file content (123 lines) | stat: -rw-r--r-- 3,955 bytes parent folder | download | duplicates (2)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# $Id: Makefile,v 1.12.1.28 1999/04/08 03:23:34 lance Exp lance $

# Please don't change the VERSION
VERSION = 0.4.3

#################### EDIT HERE ##############################

# If you install it INSTALL_DIR is the top install directory.
# It put binaries in INSTALL_DIR/bin and man pages in
# INSTALL_DIR/man and so on.
#
INSTALL_DIR = /usr/local/encap/quickplot-$(VERSION)

LIBS = -lX11 -lXaw -lXt -lXpm -L/usr/X11R6/lib

# places to look for the X include files 
CFLAGS = -I/usr/X11R6/include/X11 -I/usr/include/X11R6 \
      -I/usr/contrib/X11R6/include -I/usr/X11R6/include

#on HP-UX 10.20 uncomment the two lines below
#CC = cc -Ae
#LIBS= -L/usr/lib/X11R6 -lX11 -lXt -lXpm -lXext -L/usr/contrib/X11R6/lib -lXaw -lXmu

#on Solaris 2.5.1 uncomment the line below
#LIBS= -L/usr/lib -lc -lsocket -L/usr/X11R6/lib -lX11 -lXaw -lXt -lXpm -lXmu -lSM -lICE -lXext -Wl,-rpath -Wl,/usr/X11R6/lib

#on SGI's and Linux it's fine

# no need to edit below here to build or install it
##############################################################
################### END EDIT #################################

EXEC = quickplot test_data

QP_OBJS = usage.o add_plots_list.o initialize_Plot_struct.o \
       read_in_data.o get_options.o get_num_lines_to_skip.o \
       get_infilenames.o init_windows.o init_colors.o \
       read_ascii_file.o scale_plot.o plot.o \
       check_plots.o make_labels.o do_event_loop.o \
       malloc_scale_and_stuff.o \
       draw_zoom_box.o read_binary_file.o read_file_utils.o \
       GNUgetopt.o GNUgetopt1.o check_for_stdin.o set_options.o \
       show_point_values.o show_function_values.o icon.o \
       show_true_function_values.o add_count_field.o write_pixmap.o \
       draw_axis.o

build: $(EXEC)
	@printf "\n___---______-----_____- Quickplot is built -_____--------\n"
	@printf "\n"
	@printf "Test Quickplot by running: ./test_data | ./quickplot\n"
	@printf " To see Quickplot options: ./quickplot --help \n"
	@printf "         See man pages by: man -M ./man quickplot \n\n"
	@printf "To install quickplot: Set INSTALL_DIR macro in Makefile then make install\n\n"

install: $(EXEC)
	-mkdir -p $(INSTALL_DIR)/bin
	cp $(EXEC) $(INSTALL_DIR)/bin
	-mkdir -p $(INSTALL_DIR)/man/man1
	cp man/man1/*.1 $(INSTALL_DIR)/man/man1
	-mkdir -p $(INSTALL_DIR)/html
	cp html/*.man.html $(INSTALL_DIR)/html
	@echo
	@echo "                 All Done"
	@echo
	@echo "You can run make clean to remove build files"

test_data: test_data.o GNUgetopt.h GNUgetopt.o GNUgetopt1.o
	$(CC) test_data.o GNUgetopt.o GNUgetopt1.o -o test_data -lm

quickplot: $(QP_OBJS) main.o data.h
	$(CC) $(QP_OBJS) main.o $(LIBS) -o quickplot -lm

version.h: version.sh Makefile
	/bin/sh version.sh $(VERSION) > version.h

depend:
	makedepend -Y. -fMakefile *.c

clean:
	-rm -f $(EXEC) *.o version.h

cleano:
	-rm -f *.o

cleaner:
	-rm -f $(EXEC) *.o *~ man/man1/*.1~ html/*~ version.h Makefile.bak core

get_options.o: version.h

# Don't edit below here
#
# DO NOT DELETE THIS LINE -- make depend depends on it.

GNUgetopt.o: GNUgetopt.h
GNUgetopt1.o: GNUgetopt.h
add_count_field.o: data.h
add_plots_list.o: data.h
check_plots.o: data.h
do_event_loop.o: data.h xwin.h
draw_axis.o: data.h xwin.h
draw_zoom_box.o: data.h xwin.h
get_infilenames.o: data.h option.h GNUgetopt.h
get_num_lines_to_skip.o: data.h
get_options.o: data.h option.h GNUgetopt.h version.h
icon.o: QuickPlotIcon.xbm
init_colors.o: data.h xwin.h
init_windows.o: xwin.h data.h
initialize_Plot_struct.o: data.h
main.o: data.h xwin.h
make_labels.o: data.h
malloc_scale_and_stuff.o: data.h
plot.o: data.h xwin.h
read_ascii_file.o: data.h
read_binary_file.o: data.h
read_file_utils.o: data.h
read_in_data.o: data.h
scale_plot.o: data.h xwin.h
set_options.o: option.h GNUgetopt.h
show_function_values.o: xwin.h data.h
show_point_values.o: xwin.h data.h
show_true_function_values.o: xwin.h data.h
test_data.o: GNUgetopt.h
write_pixmap.o: xwin.h data.h