Release YGOPRO for Pandora


Sorry, forgot:

Pandroa button > System > Upgrade Pandora OS.

You have to use XFCE.

Don't know how to do it in minimenu.
 
You need a full reflash then.

Download the image, unzip it, put it on some SD.

Then reboot and hold R (shoulder button) and select "Booot from SD1:1.

(Sd with files has to be in the left slot).

If there is something important on the NAND save it as it completely reflashes the NAND.

Have an exam tomorrow, so I'll go to bed and won't look for the Link today.

It's Super Zaxxon 1.54 in the Pandora OS sub forum..
 
Hey, may I ask for an update?

There are lots of new cards I want to use and playing without pictures is not nice.

Maybe you could make it optional to install the pictures to appdata folder (ask when copying to appdata if pictures should also be copied).

Also I'd like to have 3 Minutes in online mode instead of one.

If I now join a game I only can join games with 1 minute time limit per turn.

benblub told me there is a code somewhere which allows 3 Minutes instead of 1.

There's no hurry for it.

When you have time, then it'd be nice to see some update here.
 
Ok. Once I have space on my development SDCard, I'll update YGOPRO. But I need some time for that, so probably not before mid to end of august.
 
Last edited by a moderator:
wow, just found out about this port.
im a sucker for this kind of yugi games (joey the passion being my favorite - never touched the newer iterations of the franchise...)

this is awesome stuff and i cant wait to check this out! thanks a lot!
 
It works really well.

As I said, time doesn't matter. Update as soon as you wish.

Please look at the time code as well. 1 Minute is really annoying.

wow, just found out about this port. im a sucker for this kind of yugi games (joey the passion being my favorite - never touched the newer iterations of the franchise...) this is awesome stuff and i cant wait to check this out! thanks a lot!
http://ygopro.de/?lang=en

Here's the official site of a nice client.

Works for Windows and Apple.

Runs great on wine as well.
 
Hey,

there are some great news.

The YGOPro guys did move away from the closed source client.

Here's the git entry of the new client :https://github.com/Buttys/ygopro

Please use this one when you do a recompilation.

Maybe it's time to get some free space on you SD ;) .

BTW: EvilDragon told me that appdata always has priority.

So If I will simply put a "pics" folder inside will the program use the updated pics then?

So you can save SD-space and I can use the pics folder.
 
OK. I will look at that. I've just had a quick glance and saw it use irrKLang (closed source sound engine), so I will have some work to remove that dependencie (and use SDL_mixer for example).

About pics folder yes, you can update your pic yourself :)
 
Nice.

As usual, there's no hurry for Yu Gi Oh.

So will it work with sound as well then?

Would be a nice addition if possible.

(I can live with out as well. Current build doesn't have sound as well. As long as it plays at good speed it's fine)
 
Nice.

As usual, there's no hurry for Yu Gi Oh.

So will it work with sound as well then?

Would be a nice addition if possible.

(I can live with out as well. Current build doesn't have sound as well. As long as it plays at good speed it's fine)
I cannot say for now. I'll try to migrate irrKLang to SDL_mixer, so you'll have sound if I succeed...
 
Nice to hear.

But the new client is much more important for me.

Can you also make the DevPro servers available with the client or only the Linux server.

DevPro would be much better as Linux is in Beta and doesn't work as nice as DevPro.
 
I'm trying to build it on my Arch Linux now.

I did what the README says:

 "Type 'premake4 gmake' in terminal to generate makefiles under folder 'build'
and then type 'make -Cbuild' to bring it on."

I get:


==== Building ocgcore (debug) ====
==== Building clzma (debug) ====
==== Building ygopro (debug) ====
client_field.cpp
In file included from ../gframe/client_field.cpp:5:0:
../gframe/game.h:11:22: schwerwiegender Fehler: irrKlang.h: Datei oder Verzeichnis nicht gefunden # Means: Not found in english "schwerwiegender Fehler"means Error
#include <irrKlang.h>


I installed lib32-irrKlang.

Also it's included in the "irrKlang-1.4.0" folder.

As I was searching the files I didn't find a line which shows the path where "irrKlang.h" has to be placed.

Could you (ptitSeb or anyone else) tell me, how to fix it.

Ingo, maybe you want to try to compile it native as well on a Linux computer or Slackware for Pandora.
 
I don't have access to Linux today (I'm not @home).

do some "grep irrKLang * -r", that may give you some idea on where to look (a Makefile somewhere).

Also, you are building debug build, but I don't remember the command to build release :( I have to check all that...
 
There is a make file and a ygopro.make file.

If I search via Mousepad in none of the files is irrKlang mentioned.

this is the PKGBUILD for the irrklang package.

# Maintainer: Dan Vratil <dan@progdan.cz>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Casey Banner <kcbanner@gmail.com>
pkgname=irrklang
pkgver=1.3.0b
_folderver=1.3.0
pkgrel=1
pkgdesc="3D audio library"
arch=('i686')
url="http://www.ambiera.com/irrklang/"
license=('custom')
source=(http://www.ambiera.at/downloads/irrKlang-${pkgver}.zip
irrKlang.pc LICENSE)
makedepends=('unzip')
options=(!strip)
md5sums=('4de24a8bd762750801e5da2215ff48f5'
'6d1e3b4dda21d6a127f12e09ae0eef12'
'98cdbeb0ccbc5d9b9ba2fce7ba49eb92')

package() {
install -Dm755 ${srcdir}/irrKlang-${_folderver}/bin/linux-gcc/ikpMP3.so ${pkgdir}/usr/lib/ikpMP3.so
install -Dm755 ${srcdir}/irrKlang-${_folderver}/bin/linux-gcc/libIrrKlang.so ${pkgdir}/usr/lib/libIrrKlang.so

install -dm644 ${pkgdir}/usr/include/irrKlang
install -m644 ${srcdir}/irrKlang-${_folderver}/include/* ${pkgdir}/usr/include/irrKlang/

install -Ddm644 ${srcdir}/irrKlang-${_folderver}/doc ${pkgdir}/usr/share/doc/irrKlang/

mkdir -p ${pkgdir}/usr/share/irrKlang/
cp -r ${srcdir}/irrKlang-${_folderver}/examples ${pkgdir}/usr/share/irrKlang/examples
cp -r ${srcdir}/irrKlang-${_folderver}/media ${pkgdir}/usr/share/irrKlang/media
find ${pkgdir} -type d -exec chmod 755 '{}' \;

install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/irrKlang/LICENSE

install -Dm644 ${srcdir}/irrKlang.pc ${pkgdir}/usr/lib/pkgconfig/irrKlang.pc
}

Doesn't seem it installs irrklang.h.

So where do I have to put it manually?

BTW:

Here's the make:

Code:
# GNU Make solution makefile autogenerated by Premake
# Type "make help" for usage help

ifndef config
  config=debug
endif
export config

PROJECTS := ocgcore clzma ygopro

.PHONY: all clean help $(PROJECTS)

all: $(PROJECTS)

ocgcore: 
	@echo "==== Building ocgcore ($(config)) ===="
	@${MAKE} --no-print-directory -C . -f ocgcore.make

clzma: 
	@echo "==== Building clzma ($(config)) ===="
	@${MAKE} --no-print-directory -C . -f clzma.make

ygopro: ocgcore clzma
	@echo "==== Building ygopro ($(config)) ===="
	@${MAKE} --no-print-directory -C . -f ygopro.make

clean:
	@${MAKE} --no-print-directory -C . -f ocgcore.make clean
	@${MAKE} --no-print-directory -C . -f clzma.make clean
	@${MAKE} --no-print-directory -C . -f ygopro.make clean

help:
	@echo "Usage: make [config=name] [target]"
	@echo ""
	@echo "CONFIGURATIONS:"
	@echo "   debug"
	@echo "   release"
	@echo ""
	@echo "TARGETS:"
	@echo "   all (default)"
	@echo "   clean"
	@echo "   ocgcore"
	@echo "   clzma"
	@echo "   ygopro"
	@echo ""
	@echo "For more information, see http://industriousone.com/premake/quick-start"
 
It does install the header files, with this line


install -m644 ${srcdir}/irrKlang-${_folderver}/include/* ${pkgdir}/usr/include/irrKlang/


Look at ygopro.make now, I think it's the right file.
 
Last edited by a moderator:
Here's the ygopro.make

# GNU Make project makefile autogenerated by Premake
ifndef config
config=debug
endif

ifndef verbose
SILENT = @
endif

ifndef CC
CC = gcc
endif

ifndef CXX
CXX = g++
endif

ifndef AR
AR = ar
endif

ifeq ($(config),debug)
OBJDIR = ../obj/Debug/ygopro
TARGETDIR = ../bin/debug
TARGET = $(TARGETDIR)/ygopro
DEFINES += -DLUA_USE_LINUX -D_DEBUG
INCLUDES += -I../ocgcore -I/usr/include/lua -I/usr/include/lua5.2 -I/usr/include/lua/5.2 -I/usr/include/irrlicht -I/usr/include/freetype2
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
CFLAGS += $(CPPFLAGS) $(ARCH) -g -fno-strict-aliasing -Wno-multichar -std=gnu++0x -fno-rtti
CXXFLAGS += $(CFLAGS)
LDFLAGS += -L../bin/debug
LIBS += -locgcore -lclzma -lIrrlicht -lfreetype -lsqlite3 -llua -levent -levent_pthreads -lGL -ldl -lpthread
RESFLAGS += $(DEFINES) $(INCLUDES)
LDDEPS += ../bin/debug/libocgcore.a ../bin/debug/libclzma.a
LINKCMD = $(CXX) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS)
define PREBUILDCMDS
endef
define PRELINKCMDS
endef
define POSTBUILDCMDS
endef
endif

ifeq ($(config),release)
OBJDIR = ../obj/Release/ygopro
TARGETDIR = ../bin/release
TARGET = $(TARGETDIR)/ygopro
DEFINES += -DLUA_USE_LINUX -DNDEBUG
INCLUDES += -I../ocgcore -I/usr/include/lua -I/usr/include/lua5.2 -I/usr/include/lua/5.2 -I/usr/include/irrlicht -I/usr/include/freetype2
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
CFLAGS += $(CPPFLAGS) $(ARCH) -g -O3 -fno-strict-aliasing -Wno-multichar -march=native -std=gnu++0x -fno-rtti
CXXFLAGS += $(CFLAGS)
LDFLAGS += -L../bin/release
LIBS += -locgcore -lclzma -lIrrlicht -lfreetype -lsqlite3 -llua -levent -levent_pthreads -lGL -ldl -lpthread
RESFLAGS += $(DEFINES) $(INCLUDES)
LDDEPS += ../bin/release/libocgcore.a ../bin/release/libclzma.a
LINKCMD = $(CXX) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS)
define PREBUILDCMDS
endef
define PRELINKCMDS
endef
define POSTBUILDCMDS
endef
endif

OBJECTS := \
$(OBJDIR)/CGUITTFont.o \
$(OBJDIR)/client_field.o \
$(OBJDIR)/netserver.o \
$(OBJDIR)/data_manager.o \
$(OBJDIR)/tag_duel.o \
$(OBJDIR)/image_manager.o \
$(OBJDIR)/drawing.o \
$(OBJDIR)/CGUIButton.o \
$(OBJDIR)/deck_manager.o \
$(OBJDIR)/event_handler.o \
$(OBJDIR)/client_card.o \
$(OBJDIR)/game.o \
$(OBJDIR)/deck_con.o \
$(OBJDIR)/duelclient.o \
$(OBJDIR)/single_mode.o \
$(OBJDIR)/single_duel.o \
$(OBJDIR)/CGUIEditBox.o \
$(OBJDIR)/replay_mode.o \
$(OBJDIR)/materials.o \
$(OBJDIR)/CGUIImageButton.o \
$(OBJDIR)/replay.o \
$(OBJDIR)/menu_handler.o \
$(OBJDIR)/gframe.o \
$(OBJDIR)/CXMLNode.o \
$(OBJDIR)/CXMLRegistry.o \
$(OBJDIR)/CConfigMap.o \
$(OBJDIR)/CGUISkinSystem.o \
$(OBJDIR)/CGUIProgressBar.o \
$(OBJDIR)/CImageGUISkin.o \

RESOURCES := \

SHELLTYPE := msdos
ifeq (,$(ComSpec)$(COMSPEC))
SHELLTYPE := posix
endif
ifeq (/bin,$(findstring /bin,$(SHELL)))
SHELLTYPE := posix
endif

.PHONY: clean prebuild prelink

all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
@:

$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)
@echo Linking ygopro
$(SILENT) $(LINKCMD)
$(POSTBUILDCMDS)

$(TARGETDIR):
@echo Creating $(TARGETDIR)
ifeq (posix,$(SHELLTYPE))
$(SILENT) mkdir -p $(TARGETDIR)
else
$(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
endif

$(OBJDIR):
@echo Creating $(OBJDIR)
ifeq (posix,$(SHELLTYPE))
$(SILENT) mkdir -p $(OBJDIR)
else
$(SILENT) mkdir $(subst /,\\,$(OBJDIR))
endif

clean:
@echo Cleaning ygopro
ifeq (posix,$(SHELLTYPE))
$(SILENT) rm -f $(TARGET)
$(SILENT) rm -rf $(OBJDIR)
else
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
endif

prebuild:
$(PREBUILDCMDS)

prelink:
$(PRELINKCMDS)

ifneq (,$(PCH))
$(GCH): $(PCH)
@echo $(notdir $<)
-$(SILENT) cp $< $(OBJDIR)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
endif

$(OBJDIR)/CGUITTFont.o: ../gframe/CGUITTFont.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/client_field.o: ../gframe/client_field.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/netserver.o: ../gframe/netserver.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/data_manager.o: ../gframe/data_manager.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/tag_duel.o: ../gframe/tag_duel.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/image_manager.o: ../gframe/image_manager.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/drawing.o: ../gframe/drawing.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CGUIButton.o: ../gframe/CGUIButton.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/deck_manager.o: ../gframe/deck_manager.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/event_handler.o: ../gframe/event_handler.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/client_card.o: ../gframe/client_card.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/game.o: ../gframe/game.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/deck_con.o: ../gframe/deck_con.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/duelclient.o: ../gframe/duelclient.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/single_mode.o: ../gframe/single_mode.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/single_duel.o: ../gframe/single_duel.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CGUIEditBox.o: ../gframe/CGUIEditBox.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/replay_mode.o: ../gframe/replay_mode.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/materials.o: ../gframe/materials.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CGUIImageButton.o: ../gframe/CGUIImageButton.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/replay.o: ../gframe/replay.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/menu_handler.o: ../gframe/menu_handler.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/gframe.o: ../gframe/gframe.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CXMLNode.o: ../gframe/CXMLRegistry/CXMLNode.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CXMLRegistry.o: ../gframe/CXMLRegistry/CXMLRegistry.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CConfigMap.o: ../gframe/CGUISkinSystem/CConfigMap.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CGUISkinSystem.o: ../gframe/CGUISkinSystem/CGUISkinSystem.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CGUIProgressBar.o: ../gframe/CGUISkinSystem/CGUIProgressBar.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/CImageGUISkin.o: ../gframe/CGUISkinSystem/CImageGUISkin.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"

-include $(OBJECTS:%.o=%.d)

I also have a ocgcore.make

# GNU Make project makefile autogenerated by Premake
ifndef config
config=debug
endif

ifndef verbose
SILENT = @
endif

ifndef CC
CC = gcc
endif

ifndef CXX
CXX = g++
endif

ifndef AR
AR = ar
endif

ifeq ($(config),debug)
OBJDIR = ../obj/Debug/ocgcore
TARGETDIR = ../bin/debug
TARGET = $(TARGETDIR)/libocgcore.a
DEFINES += -DLUA_USE_LINUX -D_DEBUG
INCLUDES += -I/usr/include/lua -I/usr/include/lua5.2 -I/usr/include/lua/5.2
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
CFLAGS += $(CPPFLAGS) $(ARCH) -g -fno-strict-aliasing -Wno-multichar -std=gnu++0x
CXXFLAGS += $(CFLAGS)
LDFLAGS +=
LIBS +=
RESFLAGS += $(DEFINES) $(INCLUDES)
LDDEPS +=
LINKCMD = $(AR) -rcs $(TARGET) $(OBJECTS)
define PREBUILDCMDS
endef
define PRELINKCMDS
endef
define POSTBUILDCMDS
endef
endif

ifeq ($(config),release)
OBJDIR = ../obj/Release/ocgcore
TARGETDIR = ../bin/release
TARGET = $(TARGETDIR)/libocgcore.a
DEFINES += -DLUA_USE_LINUX -DNDEBUG
INCLUDES += -I/usr/include/lua -I/usr/include/lua5.2 -I/usr/include/lua/5.2
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
CFLAGS += $(CPPFLAGS) $(ARCH) -g -O3 -fno-strict-aliasing -Wno-multichar -march=native -std=gnu++0x
CXXFLAGS += $(CFLAGS)
LDFLAGS +=
LIBS +=
RESFLAGS += $(DEFINES) $(INCLUDES)
LDDEPS +=
LINKCMD = $(AR) -rcs $(TARGET) $(OBJECTS)
define PREBUILDCMDS
endef
define PRELINKCMDS
endef
define POSTBUILDCMDS
endef
endif

OBJECTS := \
$(OBJDIR)/group.o \
$(OBJDIR)/processor.o \
$(OBJDIR)/libcard.o \
$(OBJDIR)/mem.o \
$(OBJDIR)/duel.o \
$(OBJDIR)/ocgapi.o \
$(OBJDIR)/interpreter.o \
$(OBJDIR)/card.o \
$(OBJDIR)/playerop.o \
$(OBJDIR)/libdebug.o \
$(OBJDIR)/scriptlib.o \
$(OBJDIR)/effect.o \
$(OBJDIR)/libeffect.o \
$(OBJDIR)/libduel.o \
$(OBJDIR)/libgroup.o \
$(OBJDIR)/operations.o \
$(OBJDIR)/field.o \

RESOURCES := \

SHELLTYPE := msdos
ifeq (,$(ComSpec)$(COMSPEC))
SHELLTYPE := posix
endif
ifeq (/bin,$(findstring /bin,$(SHELL)))
SHELLTYPE := posix
endif

.PHONY: clean prebuild prelink

all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
@:

$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)
@echo Linking ocgcore
$(SILENT) $(LINKCMD)
$(POSTBUILDCMDS)

$(TARGETDIR):
@echo Creating $(TARGETDIR)
ifeq (posix,$(SHELLTYPE))
$(SILENT) mkdir -p $(TARGETDIR)
else
$(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
endif

$(OBJDIR):
@echo Creating $(OBJDIR)
ifeq (posix,$(SHELLTYPE))
$(SILENT) mkdir -p $(OBJDIR)
else
$(SILENT) mkdir $(subst /,\\,$(OBJDIR))
endif

clean:
@echo Cleaning ocgcore
ifeq (posix,$(SHELLTYPE))
$(SILENT) rm -f $(TARGET)
$(SILENT) rm -rf $(OBJDIR)
else
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
endif

prebuild:
$(PREBUILDCMDS)

prelink:
$(PRELINKCMDS)

ifneq (,$(PCH))
$(GCH): $(PCH)
@echo $(notdir $<)
-$(SILENT) cp $< $(OBJDIR)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
endif

$(OBJDIR)/group.o: ../ocgcore/group.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/processor.o: ../ocgcore/processor.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/libcard.o: ../ocgcore/libcard.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/mem.o: ../ocgcore/mem.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/duel.o: ../ocgcore/duel.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/ocgapi.o: ../ocgcore/ocgapi.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/interpreter.o: ../ocgcore/interpreter.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/card.o: ../ocgcore/card.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/playerop.o: ../ocgcore/playerop.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/libdebug.o: ../ocgcore/libdebug.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/scriptlib.o: ../ocgcore/scriptlib.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/effect.o: ../ocgcore/effect.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/libeffect.o: ../ocgcore/libeffect.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/libduel.o: ../ocgcore/libduel.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/libgroup.o: ../ocgcore/libgroup.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/operations.o: ../ocgcore/operations.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/field.o: ../ocgcore/field.cpp
@echo $(notdir $<)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"

-include $(OBJECTS:%.o=%.d)

And a clzma.make

# GNU Make project makefile autogenerated by Premake
ifndef config
config=debug
endif

ifndef verbose
SILENT = @
endif

ifndef CC
CC = gcc
endif

ifndef CXX
CXX = g++
endif

ifndef AR
AR = ar
endif

ifeq ($(config),debug)
OBJDIR = ../obj/Debug/clzma
TARGETDIR = ../bin/debug
TARGET = $(TARGETDIR)/libclzma.a
DEFINES += -DLUA_USE_LINUX -D_DEBUG
INCLUDES +=
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
CFLAGS += $(CPPFLAGS) $(ARCH) -g -fno-strict-aliasing -Wno-multichar
CXXFLAGS += $(CFLAGS)
LDFLAGS +=
LIBS +=
RESFLAGS += $(DEFINES) $(INCLUDES)
LDDEPS +=
LINKCMD = $(AR) -rcs $(TARGET) $(OBJECTS)
define PREBUILDCMDS
endef
define PRELINKCMDS
endef
define POSTBUILDCMDS
endef
endif

ifeq ($(config),release)
OBJDIR = ../obj/Release/clzma
TARGETDIR = ../bin/release
TARGET = $(TARGETDIR)/libclzma.a
DEFINES += -DLUA_USE_LINUX -DNDEBUG
INCLUDES +=
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
CFLAGS += $(CPPFLAGS) $(ARCH) -g -O3 -fno-strict-aliasing -Wno-multichar -march=native
CXXFLAGS += $(CFLAGS)
LDFLAGS +=
LIBS +=
RESFLAGS += $(DEFINES) $(INCLUDES)
LDDEPS +=
LINKCMD = $(AR) -rcs $(TARGET) $(OBJECTS)
define PREBUILDCMDS
endef
define PRELINKCMDS
endef
define POSTBUILDCMDS
endef
endif

OBJECTS := \
$(OBJDIR)/LzmaLib.o \
$(OBJDIR)/Alloc.o \
$(OBJDIR)/LzmaDec.o \
$(OBJDIR)/LzmaEnc.o \
$(OBJDIR)/LzFind.o \

RESOURCES := \

SHELLTYPE := msdos
ifeq (,$(ComSpec)$(COMSPEC))
SHELLTYPE := posix
endif
ifeq (/bin,$(findstring /bin,$(SHELL)))
SHELLTYPE := posix
endif

.PHONY: clean prebuild prelink

all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
@:

$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)
@echo Linking clzma
$(SILENT) $(LINKCMD)
$(POSTBUILDCMDS)

$(TARGETDIR):
@echo Creating $(TARGETDIR)
ifeq (posix,$(SHELLTYPE))
$(SILENT) mkdir -p $(TARGETDIR)
else
$(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
endif

$(OBJDIR):
@echo Creating $(OBJDIR)
ifeq (posix,$(SHELLTYPE))
$(SILENT) mkdir -p $(OBJDIR)
else
$(SILENT) mkdir $(subst /,\\,$(OBJDIR))
endif

clean:
@echo Cleaning clzma
ifeq (posix,$(SHELLTYPE))
$(SILENT) rm -f $(TARGET)
$(SILENT) rm -rf $(OBJDIR)
else
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
endif

prebuild:
$(PREBUILDCMDS)

prelink:
$(PRELINKCMDS)

ifneq (,$(PCH))
$(GCH): $(PCH)
@echo $(notdir $<)
-$(SILENT) cp $< $(OBJDIR)
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
endif

$(OBJDIR)/LzmaLib.o: ../gframe/lzma/LzmaLib.c
@echo $(notdir $<)
$(SILENT) $(CC) $(CFLAGS) -o "$@" -c "$<"
$(OBJDIR)/Alloc.o: ../gframe/lzma/Alloc.c
@echo $(notdir $<)
$(SILENT) $(CC) $(CFLAGS) -o "$@" -c "$<"
$(OBJDIR)/LzmaDec.o: ../gframe/lzma/LzmaDec.c
@echo $(notdir $<)
$(SILENT) $(CC) $(CFLAGS) -o "$@" -c "$<"
$(OBJDIR)/LzmaEnc.o: ../gframe/lzma/LzmaEnc.c
@echo $(notdir $<)
$(SILENT) $(CC) $(CFLAGS) -o "$@" -c "$<"
$(OBJDIR)/LzFind.o: ../gframe/lzma/LzFind.c
@echo $(notdir $<)
$(SILENT) $(CC) $(CFLAGS) -o "$@" -c "$<"

-include $(OBJECTS:%.o=%.d)

It's all in the "build" folder
 
Last edited by a moderator:
Back
Top