Added upstream version.
[vlp.git] / lgconfig / Makefile
1 ###   Includes for QT library
2 QINC=/usr/lib/qt-1.45/include
3
4 ###   QT library directory
5 QLIB=/usr/lib/qt-1.45/lib
6
7 ###   moc compiler directory
8 MOCDIR=/usr/lib/qt-1.45/bin
9
10 ###  Install directory
11 INSTALLDIR=/usr/local/vlp
12 ##### Change INCDIR, LFLAGS and MOC
13
14 INCDIR = $(QINC)
15 CFLAGS = -O2 -fno-strength-reduce -Wall -W -I/usr/X11R6/include
16 LIBCFLAGS = -fPIC
17 YACCCFLAGS = -Wno-unused -Wno-parentheses
18 LFLAGS = -L$(QLIB) -lqt
19 CC = g++
20 MOC = $(MOCDIR)/moc
21 SHELL = /bin/sh
22
23 ####### Files
24
25 SOURCES =       lgconfig.cpp
26 OBJECTS =       lgconfig.o
27 SRCMETA =       lgconfig.moc
28 TARGET  =       lgconfig        
29
30 ####### Implicit rules
31
32 .SUFFIXES: .cpp
33
34 .cpp.o:
35         $(CC) -c $(CFLAGS) -I$(INCDIR) $<
36
37 ####### Build rules
38
39 all: $(TARGET)
40
41 $(TARGET): $(SRCMETA) $(OBJECTS)
42         $(CC) $(OBJECTS) -o $(TARGET) $(LFLAGS) -lm
43
44 depend:
45         @makedepend -I$(INCDIR) $(SOURCES) 2> /dev/null
46
47 showfiles:
48         @echo $(SOURCES) $(HEADERS) Makefile
49
50 clean:
51         -rm -f *.o *.bak *~ *% #*
52         -rm -f $(SRCMETA) $(TARGET)
53
54 ####### Meta objects
55
56 lgconfig.moc: lgconfig.cpp
57         $(MOC) lgconfig.cpp -o lgconfig.moc
58
59
60 # DO NOT DELETE THIS LINE -- make depend depends on it.