blob: 2d7f4b9b9bbbe26e5905ae109a149e2f2df4bc7f (
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
|
DIRECTFB_VOODOO ?= /opt/directfb-voodoo
CFLAGS += -O2 -Wall -g3
INCLUDES += \
-Isrc \
-I$(DIRECTFB_VOODOO)/include
LDADD += $(DIRECTFB_VOODOO)/lib/libdirectfb.o -lpthread
OBJECTS += src/classes.o
ifeq ($(OS),Windows_NT)
CPPFLAGS += -D__WIN32__
LDADD += -lgdi32 -luser32 -lversion libscreenhooks.a
OBJECTS += \
src/videodriver.o \
src/videodrivercheck.o \
src/KeySend.o
SOURCE = SourceWin32.cxx
else
LDADD += -lX11 -lXext -lXdamage -lXfixes
SOURCE = SourceX11.cxx
endif
all: pluggit
pluggit: $(OBJECTS)
$(CXX) $+ $(LDADD) -o pluggit
.cpp.o:
$(CXX) $(CFLAGS) -o $@ -c $< $(INCLUDES) $(CPPFLAGS)
clean:
rm -f $(OBJECTS) pluggit
CLASSES = \
Exception.cxx \
OutOfMemoryException.cxx \
\
Clock.cxx \
FPS.cxx \
Options.cxx \
Random.cxx \
Updates.cxx \
\
Runnable.cxx \
Thread.cxx \
\
Scaler.cxx \
\
View.cxx \
Source.cxx \
$(SOURCE) \
\
Main.cxx
export CPPFLAGS
src/classes.cpp: makefile.voodoo $(CLASSES:%=src/%) src/*.h src/gen_classes.sh src/main.c
cd src && ./gen_classes.sh $(CLASSES) > classes.cpp
|