dos33fsprogs/games/duke/maps/Makefile
Vince Weaver b1238af49d re-arranged the entire directory structure
this will probably upset people
2021-01-05 15:29:31 -05:00

38 lines
652 B
Makefile

CC = gcc
CFLAGS = -g -Wall -O2
LZSA = ~/research/lzsa/lzsa/lzsa
all: level1_map.lzsa level2_map.lzsa png2map
###
level1_map.inc: level1_map.png png2map
./png2map level1_map.png level1_map.inc
level2_map.inc: level2_map.png png2map
./png2map level2_map.png level2_map.inc
###
loadpng.o: loadpng.c loadpng.h
$(CC) $(CFLAGS) -c loadpng.c
rle_common.o: rle_common.c rle_common.h
$(CC) $(CFLAGS) -c rle_common.c
###
png2map: png2map.o loadpng.o
$(CC) $(LFLAGS) -o png2map png2map.o loadpng.o -lpng
png2map.o: png2map.c loadpng.h
$(CC) $(CFLAGS) -c png2map.c
###
%.lzsa: %.inc
$(LZSA) -r -f2 $< $@
clean:
rm -f *~ *.o *.inc png2map