2024-04-10 08:19:48 +08:00
|
|
|
CC=i686-w64-mingw32-gcc
|
2013-07-23 18:04:20 +08:00
|
|
|
CFLAGS=-O3 -Iinc/ -Wall -DLE_ARCH
|
2024-04-10 08:19:48 +08:00
|
|
|
LDFLAGS=-lpng -lz -lvfw32 -Llib/
|
2013-07-24 00:20:02 +08:00
|
|
|
OBJS=avs2bdnxml.o auto_split.o palletize.o sup.o sort.o ass.o
|
2013-07-23 18:04:20 +08:00
|
|
|
ASMOBJS=frame-a.o
|
|
|
|
EXE=avs2bdnxml.exe
|
|
|
|
|
|
|
|
%.o: %.c %.h Makefile
|
|
|
|
$(CC) -c $< $(CFLAGS)
|
|
|
|
|
|
|
|
$(EXE): $(OBJS) $(ASMOBJS)
|
|
|
|
$(CC) -o $(EXE) $(OBJS) $(ASMOBJS) $(LDFLAGS)
|
|
|
|
|
|
|
|
all: $(EXE)
|
|
|
|
|
|
|
|
$(ASMOBJS): $(ASMOBJS:%.o=%.asm)
|
|
|
|
yasm -f win32 -m x86 -DARCH_X86_64=0 -DPREFIX=1 $< -o $(<:%.asm=%.o)
|
|
|
|
|
|
|
|
dist: clean all
|
|
|
|
strip -s $(EXE)
|
|
|
|
upx-ucl --best $(EXE)
|
|
|
|
rm -f $(OBJS) $(ASMOBJS)
|
|
|
|
|
|
|
|
.phony clean:
|
|
|
|
rm -f $(EXE) $(OBJS) $(ASMOBJS)
|
|
|
|
|