summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: b8f4358517b53f10727abf3480050f2b3b6d07b1 (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
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
#
# "$Id: Makefile,v 1.11 1998/10/21 22:03:53 mike Exp $"
#
# Test/example program makefile for the Fast Light Tool Kit (FLTK).
#
# Copyright 1998 by Bill Spitzak and others.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
#
# Please report all bugs and problems to "fltk-bugs@easysw.com".
#

CPPFILES =\
	adjuster.C arc.C ask.C bitmap.C boxtype.C browser.C button.C \
	buttons.C checkers.C  clock.C colbrowser.C color_chooser.C \
	cube.C cursor.C curve.C demo.C doublebuffer.C  file_chooser.C \
	fonts.C forms.C fractals.C fullscreen.C gl_overlay.C \
	glpuzzle.C  hello.C iconize.C image.C input.C keyboard.C \
	label.C list_visuals.C mandelbrot.C  menubar.C message.C \
	minimum.C navigation.C output.C overlay.C pixmap.C  \
	pixmap_browser.C radio.C resizebox.C scroll.C shape.C shiny.C \
	subwindow.C  symbols.C tabs.C tile.C valuators.C fast_slow.C \
	resize.C pack.C inactive.C style.C

ALL =	adjuster arc ask bitmap boxtype browser button buttons checkers \
	clock colbrowser color_chooser cube cursor curve demo doublebuffer \
	file_chooser fonts forms fractals fullscreen gl_overlay glpuzzle \
	hello iconize image input keyboard label list_visuals mandelbrot \
	menubar message minimum navigation output overlay pixmap \
	pixmap_browser radio resizebox scroll shape shiny subwindow \
	symbols tabs tile valuators fast_slow resize pack inactive style

all:	$(ALL)

include ../makeinclude

$(ALL):  ../lib/$(LIBNAME)

.SUFFIXES: .C .c .o .fl .H

.C:
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) $< -L../lib -lfltk $(LDLIBS) -o $@

.fl.C:
	@echo $@:
	@../fluid/fluid -c $<

.fl:
	@echo $@:
	@../fluid/fluid -c $<
	@$(CXX) -I.. $(CXXFLAGS) $@.C -L../lib -lfltk $(LDLIBS) -o $@

# Programs needing the OpenGL libraries:
cube: cube.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) cube.C -L../lib -lfltk $(GLDLIBS) -o $@
fullscreen: fullscreen.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) fullscreen.C -L../lib -lfltk $(GLDLIBS) -o $@
fractals: fractals.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) fractals.C -L../lib -lfltk $(GLDLIBS) -o $@
gl_overlay: gl_overlay.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) gl_overlay.C -L../lib -lfltk $(GLDLIBS) -o $@
glpuzzle: glpuzzle.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) glpuzzle.C -L../lib -lfltk $(GLDLIBS) -o $@
shape: shape.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) shape.C -L../lib -lfltk $(GLDLIBS) -o $@
shiny: shiny.C shiny_panel.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) shiny.C -L../lib -lfltk $(GLDLIBS) -o $@

# Other programs needing special "help"...
keyboard: keyboard.C keyboard_ui.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) keyboard.C -L../lib -lfltk $(LDLIBS) -o $@
mandelbrot: mandelbrot.C mandelbrot_ui.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) mandelbrot.C -L../lib -lfltk $(LDLIBS) -o $@
style: style.C style_ui.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) style.C -L../lib -lfltk $(LDLIBS) -o $@

# If you have libjpeg installed, you might want to try this test program:

jpeg_image: jpeg_image.C
	@echo $@:
	@$(CXX) -I.. $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.C -L../lib -lfltk $(LDLIBS) -ljpeg -lXext -o $@

depend:
	$(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) > makedepend

clean:
	-@ rm -f $(ALL) jpeg_image *.o core *~

install:
	@echo Nothing to install in test directory.

#
# End of "$Id: Makefile,v 1.11 1998/10/21 22:03:53 mike Exp $".
#