2017-04-30 22:22:07 -04:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
2017-05-03 22:21:19 -04:00
|
|
|
CFLAGS = -g -Wall -O2
|
|
|
|
|
2020-10-20 02:01:54 -04:00
|
|
|
all: text2gr png2gr png2gr_text png2rle png2lz4 png_to_40x48d png_to_40x96 \
|
2020-10-28 00:36:59 -04:00
|
|
|
png2sixbitmap png2six80 png2sixrle png2fourrle png2sixrle2
|
2017-05-03 23:06:50 -04:00
|
|
|
|
|
|
|
|
|
|
|
###
|
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
|
|
|
|
|
2019-09-04 15:49:53 -04:00
|
|
|
rle_common.o: rle_common.c rle_common.h
|
|
|
|
$(CC) $(CFLAGS) -c rle_common.c
|
2020-04-08 12:02:03 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
text2gr: text2gr.o
|
|
|
|
$(CC) $(LFLAGS) -o text2gr text2gr.o
|
|
|
|
|
|
|
|
text2gr.o: text2gr.c
|
|
|
|
$(CC) $(CFLAGS) -c text2gr.c
|
2017-05-03 23:06:50 -04:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2017-05-03 22:21:19 -04:00
|
|
|
png2gr: png2gr.o loadpng.o
|
2019-09-04 15:49:53 -04:00
|
|
|
$(CC) $(LFLAGS) -o png2gr png2gr.o loadpng.o -lpng
|
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
|
|
|
###
|
|
|
|
|
2018-11-19 15:25:25 -05:00
|
|
|
png2gr_text: png2gr_text.o loadpng.o
|
2019-09-04 15:49:53 -04:00
|
|
|
$(CC) $(LFLAGS) -o png2gr_text png2gr_text.o loadpng.o -lpng
|
2018-11-19 15:25:25 -05:00
|
|
|
|
|
|
|
png2gr_text.o: png2gr_text.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2gr_text.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2020-10-20 02:01:54 -04:00
|
|
|
png2sixbitmap: png2sixbitmap.o loadpng.o
|
|
|
|
$(CC) $(LFLAGS) -o png2sixbitmap png2sixbitmap.o loadpng.o -lpng
|
|
|
|
|
|
|
|
png2sixbitmap.o: png2sixbitmap.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2sixbitmap.c
|
|
|
|
|
2020-10-23 16:11:15 -04:00
|
|
|
###
|
|
|
|
|
2020-10-27 16:45:11 -04:00
|
|
|
png2sixrle: png2sixrle.o loadpng.o
|
|
|
|
$(CC) $(LFLAGS) -o png2sixrle png2sixrle.o loadpng.o -lpng
|
|
|
|
|
|
|
|
png2sixrle.o: png2sixrle.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2sixrle.c
|
|
|
|
|
2020-10-28 00:36:59 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
png2fourrle: png2fourrle.o loadpng.o
|
|
|
|
$(CC) $(LFLAGS) -o png2fourrle png2fourrle.o loadpng.o -lpng
|
|
|
|
|
|
|
|
png2fourrle.o: png2fourrle.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2fourrle.c
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
png2sixrle2: png2sixrle2.o loadpng.o
|
|
|
|
$(CC) $(LFLAGS) -o png2sixrle2 png2sixrle2.o loadpng.o -lpng
|
|
|
|
|
|
|
|
png2sixrle2.o: png2sixrle2.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2sixrle2.c
|
|
|
|
|
|
|
|
|
2020-10-27 16:45:11 -04:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2020-10-23 16:11:15 -04:00
|
|
|
png2six80: png2six80.o loadpng.o
|
|
|
|
$(CC) $(LFLAGS) -o png2six80 png2six80.o loadpng.o -lpng
|
|
|
|
|
|
|
|
png2six80.o: png2six80.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2six80.c
|
|
|
|
|
2020-10-20 02:01:54 -04:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2019-09-04 15:49:53 -04:00
|
|
|
png2rle: png2rle.o loadpng.o rle_common.o
|
|
|
|
$(CC) $(LFLAGS) -o png2rle png2rle.o loadpng.o rle_common.o -lpng
|
2017-05-03 23:06:50 -04:00
|
|
|
|
2019-09-04 15:49:53 -04:00
|
|
|
png2rle.o: png2rle.c loadpng.h rle_common.h
|
2017-05-03 23:06:50 -04:00
|
|
|
$(CC) $(CFLAGS) -c png2rle.c
|
|
|
|
|
2018-07-31 20:02:27 -04:00
|
|
|
|
2019-02-25 12:28:42 -05:00
|
|
|
###
|
|
|
|
|
|
|
|
png2lz4: png2lz4.o loadpng.o
|
2019-09-04 15:49:53 -04:00
|
|
|
$(CC) $(LFLAGS) -o png2lz4 png2lz4.o loadpng.o -llz4 -lpng
|
2019-02-25 12:28:42 -05:00
|
|
|
|
|
|
|
png2lz4.o: png2lz4.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c png2lz4.c
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-31 20:02:27 -04:00
|
|
|
###
|
|
|
|
|
2019-09-04 16:13:17 -04:00
|
|
|
png_to_40x48d: png_to_40x48d.o rle_common.o
|
|
|
|
$(CC) $(LFLAGS) -o png_to_40x48d png_to_40x48d.o rle_common.o -lpng
|
2018-07-31 20:02:27 -04:00
|
|
|
|
2019-09-04 16:13:17 -04:00
|
|
|
png_to_40x48d.o: png_to_40x48d.c rle_common.h
|
2018-07-31 20:02:27 -04:00
|
|
|
$(CC) $(CFLAGS) -c png_to_40x48d.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2019-09-04 16:04:49 -04: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-07-31 20:02:27 -04:00
|
|
|
|
2019-09-04 16:04:49 -04:00
|
|
|
png_to_40x96.o: png_to_40x96.c loadpng.h rle_common.h
|
2018-07-31 20:02:27 -04:00
|
|
|
$(CC) $(CFLAGS) -c png_to_40x96.c
|
|
|
|
|
|
|
|
|
2017-05-03 23:06:50 -04:00
|
|
|
###
|
2017-04-30 22:22:07 -04:00
|
|
|
|
|
|
|
install:
|
2020-10-28 00:36:59 -04:00
|
|
|
cp png2gr png2gr_text png2rle png2lz4 png_to_40x48d png_to_40x96 png2sixbitmap png2sixrle png2sixrle2 png2fourrle png2six80 $(INSTALL_LOC)
|
2017-04-30 22:22:07 -04:00
|
|
|
|
|
|
|
clean:
|
2020-10-28 00:36:59 -04:00
|
|
|
rm -f *~ *.o png2gr png2gr_text png2rle png2lz4 png_to_40x48d png_to_40x96 png2sixbitmap png2sixrle png2fourrle png2sixrle2 png2six80
|
2017-04-30 22:22:07 -04:00
|
|
|
|