mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-15 10:36:44 -04:00
Compliant XA decompression code added to the FileHandler interface
This commit is contained in:
parent
1a279588f1
commit
8d06606f28
4 changed files with 390 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue