2017-04-30 22:22:07 -04:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
2017-05-03 22:21:19 -04:00
|
|
|
CFLAGS = -g -Wall -O2
|
|
|
|
|
2017-05-03 23:06:50 -04:00
|
|
|
all: png2gr png2rle
|
|
|
|
|
|
|
|
|
|
|
|
###
|
2017-04-30 22:22:07 -04:00
|
|
|
|
2017-05-03 22:21:19 -04:00
|
|
|
loadpng.o: loadpng.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c loadpng.c
|
|
|
|
|
2017-05-03 23:06:50 -04:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2017-05-03 22:21:19 -04:00
|
|
|
png2gr: png2gr.o loadpng.o
|
|
|
|
$(CC) $(LFLAGS) -lpng -o png2gr png2gr.o loadpng.o
|
2017-04-30 22:22:07 -04:00
|
|
|
|
2017-05-03 22:21:19 -04:00
|
|
|
png2gr.o: png2gr.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2gr.c
|
2017-04-30 22:22:07 -04:00
|
|
|
|
2017-05-03 23:06:50 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
png2rle: png2rle.o loadpng.o
|
|
|
|
$(CC) $(LFLAGS) -lpng -o png2rle png2rle.o loadpng.o
|
|
|
|
|
|
|
|
png2rle.o: png2rle.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2rle.c
|
|
|
|
|
|
|
|
###
|
2017-04-30 22:22:07 -04:00
|
|
|
|
|
|
|
install:
|
2017-05-03 23:06:50 -04:00
|
|
|
cp png2gr png2rle $(INSTALL_LOC)
|
2017-04-30 22:22:07 -04:00
|
|
|
|
|
|
|
clean:
|
2017-05-03 23:06:50 -04:00
|
|
|
rm -f *~ *.o png2gr png2rle
|
2017-04-30 22:22:07 -04:00
|
|
|
|