ys2-intro/loader/tools/exomizer-3.1/rawdecrs/Makefile
2025-11-13 19:07:39 +03:00

62 lines
1.3 KiB
Makefile

#
# Makefile for exomizer decruncher
#
WFLAGS = -std=c89 -Wall -Wstrict-prototypes -D_XOPEN_SOURCE=600 -pedantic
CFLAGS = $(WFLAGS) -O3 -ffast-math -fomit-frame-pointer
LDFLAGS = -s
#CFLAGS = -g $(WFLAGS)
#LDFLAGS = -g
TEST_OBJS = main.o exodecrunch.o
TEST2_OBJS = main2.o exodecr.o
#.SILENT:
.PHONY: build
build: $(MAKEFILE) test test2
test: main test1.exo test2.exo test3.exo test4.exo
./main test1.exo test1.dec
cmp test1.bin test1.dec
./main test2.exo test2.dec
cmp test2.bin test2.dec
./main test3.exo test3.dec
cmp test3.bin test3.dec
./main test4.exo test4.dec
cmp test4.bin test4.dec
test2: main2 test1.oxe test2.oxe test3.oxe test4.oxe
./main2 test1.oxe test1.dec
cmp test1.bin test1.dec
./main2 test2.oxe test2.dec
cmp test2.bin test2.dec
./main2 test3.oxe test3.dec
cmp test3.bin test3.dec
./main2 test4.oxe test4.dec
cmp test4.bin test4.dec
main: deps $(TEST_OBJS)
$(CC) $(LDFLAGS) -o $@ $(TEST_OBJS)
main2: deps $(TEST2_OBJS)
$(CC) $(LDFLAGS) -o $@ $(TEST2_OBJS)
clean:
-$(RM) $(TEST_OBJS) $(TEST2_OBJS) main main.exe main2 main2.exe \
*.o deps *.exo *.oxe *.dec
-include deps
deps: $(wildcard *.h)
$(CC) -MM $(wildcard *.c) >$@
%.exo: %.bin
../src/exomizer raw -q -C $< -o $@
%.oxe: %.bin
../src/exomizer raw -q -C -b $< -o $@