From 27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e Mon Sep 17 00:00:00 2001 From: Denis Oliver Kropp Date: Tue, 19 Oct 2010 15:56:15 +0200 Subject: pluggit --- makefile.voodoo | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100755 makefile.voodoo (limited to 'makefile.voodoo') 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 + -- cgit