1#############################################################################
2# Makefile for building SampleHoldPlugin.so
3#############################################################################
4
5####### Compiler, tools and options
6
7CFLAGS	=       @CFLAGS@ -I/usr/local/include
8CXXFLAGS=       @CXXFLAGS@ -I/usr/local/include
9INCPATH	=	-I/usr/X11R6/include
10LINK	=	$(CXX) -shared
11LFLAGS	=
12LIBS	=   @FLTK_LIBS@
13MOC     = moc
14UIC	=
15
16TAR	=	tar -cf
17GZIP	=	gzip -9f
18
19INSTALL	= @INSTALL@
20
21###### Autoconf variables
22
23prefix = @prefix@
24exec_prefix = @exec_prefix@
25
26bindir = @bindir@
27sbindir = @sbindir@
28libexecdir = @libexecdir@
29datadir = @datadir@
30sysconfdir = @sysconfdir@
31sharedstatedir = @sharedstatedir@
32localstatedir = @localstatedir@
33libdir = @libdir@
34infodir = @infodir@
35mandir = @mandir@
36
37####### Files
38
39HEADERS =	SampleHoldPlugin.h \
40		SampleHoldPluginGUI.h \
41		../SpiralPlugin.h \
42		../SpiralPluginGUI.h \
43		../../ChannelHandler.h \
44		../../Sample.h \
45		../../../GUI/Widgets/SpiralGUI.H
46SOURCES =	SampleHoldPlugin.C \
47		SampleHoldPluginGUI.C \
48		../SpiralPlugin.C \
49		../SpiralPluginGUI.C \
50		../../ChannelHandler.C \
51		../../Sample.C \
52		../../../GUI/Widgets/SpiralGUI.C
53OBJECTS =	SampleHoldPlugin.o \
54		SampleHoldPluginGUI.o \
55		../SpiralPlugin.o \
56		../SpiralPluginGUI.o \
57		../../ChannelHandler.o \
58		../../Sample.o \
59		../../../GUI/Widgets/SpiralGUI.o
60INTERFACES =
61UICDECLS =
62UICIMPLS =
63SRCMOC	=
64OBJMOC	=
65DIST	=
66TARGET	=	SampleHoldPlugin.so
67
68####### Implicit rules
69
70.SUFFIXES: .cpp .cxx .cc .C .c
71
72.cpp.o:
73	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
74
75.cxx.o:
76	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
77
78.cc.o:
79	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
80
81.C.o:
82	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
83
84.c.o:
85	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
86
87####### Build rules
88
89
90all: $(TARGET)
91
92$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
93	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
94
95moc: $(SRCMOC)
96
97tmake:
98	tmake SampleHoldPlugin.pro
99
100dist:
101	$(TAR) SampleHoldPlugin.tar SampleHoldPlugin.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
102	$(GZIP) SampleHoldPlugin.tar
103
104clean:
105	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
106	-rm -f *~ core
107
108install:
109	$(INSTALL) $(TARGET) $(DESTDIR)$(libdir)/SpiralPlugins
110
111####### Sub-libraries
112
113
114###### Combined headers
115
116
117####### Compile
118
119../SpiralPlugin.o: ../SpiralPlugin.C \
120		../SpiralPlugin.h \
121		../../ChannelHandler.h \
122		../../Sample.h
123
124../SpiralPluginGUI.o: ../SpiralPluginGUI.C \
125		../SpiralPluginGUI.h \
126		../SpiralPlugin.h \
127		../../ChannelHandler.h \
128		../../../GUI/Widgets/SpiralGUI.H
129
130../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \
131		../../../GUI/Widgets/SpiralGUI.H
132
133../../Sample.o: ../../Sample.C \
134		../../Sample.h
135
136SampleHoldPlugin.o: SampleHoldPlugin.C \
137		SampleHoldPlugin.h \
138		SampleHoldPluginGUI.h \
139		../SpiralPluginGUI.h \
140		../SpiralPlugin.h \
141		../../Sample.h \
142		SpiralIcon.xpm
143
144SampleHoldPluginGUI.o: SampleHoldPluginGUI.C \
145		SampleHoldPluginGUI.h \
146		SampleHoldPlugin.h \
147		../SpiralPluginGUI.h \
148		../SpiralPlugin.h \
149		../../Sample.h \
150		../../../GUI/Widgets/SpiralGUI.H
151
152../../ChannelHandler.o: ../../ChannelHandler.C \
153		../../ChannelHandler.h
154