Compliant XA decompression code added to the FileHandler interface

This commit is contained in:
Fatbag 2011-12-14 01:10:04 -06:00
parent 1a279588f1
commit 8d06606f28
4 changed files with 390 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# macros --------------------------------------------------------------------
CC = gcc
LD = gcc
CFLAGS = -m32 -Wall -Wextra -Wabi -Os -march=i686 -fomit-frame-pointer -ffast-math -funsafe-loop-optimizations -fmerge-all-constants -g0 -fno-exceptions
LDFLAGS = -m32 -s -fwhole-program
AR = ar rcs
WINDRES = windres -F pe-i386
OBJECTS = obj/read_xa.o obj/xadecode.o
# These will rebuild the entire library upon edit.
DEPS = Makefile \
read_xa.h
# dependencies --------------------------------------------------------------
all: xadecode.exe
$(OBJECTS): $(DEPS)
xadecode.exe: $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $(OBJECTS)
# make rules ----------------------------------------------------------------
obj/%.o: %.c
$(CC) -c -ansi -pedantic $(CFLAGS) -o $@ $<
# maintenance ---------------------------------------------------------------
clean:
del /Q /S obj xadecode.exe