-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (40 loc) · 1.4 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
INCDIR = /usr/include/qt3
CFLAGS = -O2 -ansi -DNDEBUG -fno-strength-reduce -Wall -W -I/usr/X11R6/include
LIBCFLAGS = -fPIC
YACCCFLAGS = -Wno-unused -Wno-parentheses
LFLAGS = -L/usr/lib -lqt-mt -lm -L/usr/X11R6/lib -lX11
CC = g++
MOC = /usr/share/qt3/bin/moc
SHELL = /bin/sh
####### Files
HEADERS = nplot.h canvas.h menu.h butgr.h transfo.h
SOURCES = nplot.cpp canvas.cpp menu.cpp butgr.cpp transfo.cpp main.cpp
OBJECTS = nplot.o canvas.o menu.o butgr.o transfo.o main.o
SRCMETA = nplot.moc.cpp canvas.moc.cpp menu.moc.cpp butgr.moc.cpp
OBJMETA = nplot.moc.o canvas.moc.o menu.moc.o butgr.moc.o
TARGET = nodplot
####### Implicit rules
.SUFFIXES: .cpp
.cpp.o:
$(CC) -c $(CFLAGS) -I$(INCDIR) $<
####### Build rules
all: $(TARGET)
$(TARGET): $(OBJECTS) $(OBJMETA)
$(CC) $(OBJECTS) $(OBJMETA) -o $(TARGET) $(LFLAGS)
depend: $(SRCMETA)
@makedepend -I$(INCDIR) $(SOURCES) 2> /dev/null
showfiles:
@echo $(SOURCES) $(HEADERS) Makefile
clean:
-rm -f *.o *.bak *BAK *~ *% #*
-rm -f $(SRCMETA) $(TARGET)
####### Meta objects
canvas.moc.cpp: canvas.h
$(MOC) -o canvas.moc.cpp canvas.h
menu.moc.cpp: menu.h
$(MOC) -o menu.moc.cpp menu.h
butgr.moc.cpp: butgr.h
$(MOC) -o butgr.moc.cpp butgr.h
nplot.moc.cpp: nplot.h
$(MOC) -o nplot.moc.cpp nplot.h
# DO NOT DELETE THIS LINE -- make depend depends on it.