summaryrefslogtreecommitdiff
path: root/makefile.voodoo
diff options
context:
space:
mode:
Diffstat (limited to 'makefile.voodoo')
-rwxr-xr-xmakefile.voodoo77
1 files changed, 77 insertions, 0 deletions
diff --git a/makefile.voodoo b/makefile.voodoo
new file mode 100755
index 0000000..544daf7
--- /dev/null
+++ b/makefile.voodoo
@@ -0,0 +1,77 @@
+
+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
+
+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
+