2017-05-01 02:22:07 +00:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
2017-05-04 02:21:19 +00:00
|
|
|
CFLAGS = -g -Wall -O2
|
|
|
|
|
2019-02-25 17:28:42 +00:00
|
|
|
all: png2gr png2gr_text png2rle png2lz4 png_to_40x48d png_to_40x96
|
2017-05-04 03:06:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
2017-05-01 02:22:07 +00:00
|
|
|
|
2017-05-04 02:21:19 +00:00
|
|
|
loadpng.o: loadpng.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c loadpng.c
|
|
|
|
|
2019-09-04 19:49:53 +00:00
|
|
|
rle_common.o: rle_common.c rle_common.h
|
|
|
|
$(CC) $(CFLAGS) -c rle_common.c
|
2017-05-04 03:06:50 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2017-05-04 02:21:19 +00:00
|
|
|
png2gr: png2gr.o loadpng.o
|
2019-09-04 19:49:53 +00:00
|
|
|
$(CC) $(LFLAGS) -o png2gr png2gr.o loadpng.o -lpng
|
2017-05-01 02:22:07 +00:00
|
|
|
|
2017-05-04 02:21:19 +00:00
|
|
|
png2gr.o: png2gr.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2gr.c
|
2017-05-01 02:22:07 +00:00
|
|
|
|
2017-05-04 03:06:50 +00:00
|
|
|
###
|
|
|
|
|
2018-11-19 20:25:25 +00:00
|
|
|
png2gr_text: png2gr_text.o loadpng.o
|
2019-09-04 19:49:53 +00:00
|
|
|
$(CC) $(LFLAGS) -o png2gr_text png2gr_text.o loadpng.o -lpng
|
2018-11-19 20:25:25 +00:00
|
|
|
|
|
|
|
png2gr_text.o: png2gr_text.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2gr_text.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2019-09-04 19:49:53 +00:00
|
|
|
png2rle: png2rle.o loadpng.o rle_common.o
|
|
|
|
$(CC) $(LFLAGS) -o png2rle png2rle.o loadpng.o rle_common.o -lpng
|
2017-05-04 03:06:50 +00:00
|
|
|
|
2019-09-04 19:49:53 +00:00
|
|
|
png2rle.o: png2rle.c loadpng.h rle_common.h
|
2017-05-04 03:06:50 +00:00
|
|
|
$(CC) $(CFLAGS) -c png2rle.c
|
|
|
|
|
2018-08-01 00:02:27 +00:00
|
|
|
|
2019-02-25 17:28:42 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
png2lz4: png2lz4.o loadpng.o
|
2019-09-04 19:49:53 +00:00
|
|
|
$(CC) $(LFLAGS) -o png2lz4 png2lz4.o loadpng.o -llz4 -lpng
|
2019-02-25 17:28:42 +00:00
|
|
|
|
|
|
|
png2lz4.o: png2lz4.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2lz4.c
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-01 00:02:27 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
png_to_40x48d: png_to_40x48d.o
|
2019-09-04 19:49:53 +00:00
|
|
|
$(CC) $(LFLAGS) -o png_to_40x48d png_to_40x48d.o -lpng
|
2018-08-01 00:02:27 +00:00
|
|
|
|
|
|
|
png_to_40x48d.o: png_to_40x48d.c
|
|
|
|
$(CC) $(CFLAGS) -c png_to_40x48d.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2019-09-04 20:04:49 +00:00
|
|
|
png_to_40x96: png_to_40x96.o loadpng.o rle_common.o
|
|
|
|
$(CC) $(LFLAGS) -o png_to_40x96 png_to_40x96.o loadpng.o rle_common.o -lpng
|
2018-08-01 00:02:27 +00:00
|
|
|
|
2019-09-04 20:04:49 +00:00
|
|
|
png_to_40x96.o: png_to_40x96.c loadpng.h rle_common.h
|
2018-08-01 00:02:27 +00:00
|
|
|
$(CC) $(CFLAGS) -c png_to_40x96.c
|
|
|
|
|
|
|
|
|
2017-05-04 03:06:50 +00:00
|
|
|
###
|
2017-05-01 02:22:07 +00:00
|
|
|
|
|
|
|
install:
|
2019-02-25 17:28:42 +00:00
|
|
|
cp png2gr png2gr_text png2rle png2lz4 png_to_40x48d png_to_40x96 $(INSTALL_LOC)
|
2017-05-01 02:22:07 +00:00
|
|
|
|
|
|
|
clean:
|
2019-02-25 17:28:42 +00:00
|
|
|
rm -f *~ *.o png2gr png2gr_text png2rle png2lz4 png_to_40x48d png_to_40x96
|
2017-05-01 02:22:07 +00:00
|
|
|
|