User:Lardarse: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
*>Lardarse
No edit summary
*>Lardarse
mNo edit summary
Line 14: Line 14:
* <strike>Sleep...</strike>
* <strike>Sleep...</strike>


Lockjaw makefile for Linux
Lockjaw makefile for Linux (might require some tweaking, this is the quick and dirty way to make it work...)


<pre>
<pre>

Revision as of 13:05, 1 January 2007

Umm... Yeah

I'm me

TODO:

  • Add info about how to compile Lockjaw on Linux
  • Ask tepples if he knows how to use a .diff file
  • Try to understand how the current randomizer system in LJ works
  • Find out the numbering of each piece, just in case it's not obvious...
  • Add a few randomizers (Stickless 6 memoryless, Expanded 10 memoryless, Teflon 7 bag, Teflon 7 memoryless)
  • Try to add a new option in the menu. Initially held piece: Nothing, I, J, L, O, S, T, Z, I3, L3, I2, Random of standard 7, Random of expanded 10
  • Investigate the possibility of a scoring system that can give more points for line clears with consecutive pieces, and give a bonus when the pit is cleared
  • Extract the images from the LJ icon into PNG format
  • Sleep...

Lockjaw makefile for Linux (might require some tweaking, this is the quick and dirty way to make it work...)

EXE := lj
CFLAGS := -Wall -O2 -std=gnu99
CC := gcc
LD := gcc
LDFLAGS := -Wall -s -mwindows
srcdir := src
objdir := obj/win32

MUSICOBJS := $(objdir)/ljvorbis.o 
MUSICLIBS := -laldmb -ldumb -lvorbisfile -lvorbis -logg

LDLIBS := -ljpgal -lalleg
DEPOBJS := $(objdir)/ljpc.o $(objdir)/lj.o $(objdir)/ljplay.o $(objdir)/pcjoy.o $(objdir)/gimmicks.o $(objdir)/wktables.o $(objdir)/options.o $(objdir)/debrief.o $(objdir)/macro.o $(objdir)/ljreplay.o $(objdir)/ljmusic.o $(MUSICOBJS)

# Objects

$(EXE): $(DEPOBJS)
	$(LD) $(LDFLAGS) $^ $(MUSICLIBS) $(LDLIBS) -o $@

# Compilation rules

$(objdir)/%.o: $(srcdir)/%.c
	$(CC) $(CFLAGS) -MMD -c -o $@ $<
	@cp $(objdir)/$*.d $(objdir)/$*.P; \
	sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
	-e '/^$$/ d' -e 's/$$/ :/' < $(objdir)/$*.d >> $(objdir)/$*.P; \
	rm -f $(objdir)/$*.d

# Header dependencies

-include $(DEPOBJS:%.o=%.P)

# Cleanup rules
.PHONY: clean

clean:
	-rm $(objdir)/*.o
	-rm $(objdir)/*.P

Based on the makefile for 0.27. Under whatever licence is necessary (probably GPL)

Note to self: Pasting anything with DOS line feeds in Linux is gonna make it look screwy...