2023-09-30 04:50:37 +00:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -g -Wall -O2
|
|
|
|
|
2023-10-01 04:03:47 +00:00
|
|
|
all: box_convert make_sizes
|
2023-09-30 04:50:37 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
loadpng.o: loadpng.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c loadpng.c
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
box_convert: box_convert.o loadpng.o
|
|
|
|
$(CC) $(LFLAGS) -o box_convert box_convert.o loadpng.o -lpng
|
|
|
|
|
2023-10-01 04:03:47 +00:00
|
|
|
box_convert.o: box_convert.c loadpng.h box_sizes.c
|
2023-09-30 04:50:37 +00:00
|
|
|
$(CC) $(CFLAGS) -c box_convert.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2023-10-01 04:03:47 +00:00
|
|
|
make_sizes: make_sizes.o
|
|
|
|
$(CC) $(LFLAGS) -o make_sizes make_sizes.o
|
|
|
|
|
|
|
|
make_sizes.o: make_sizes.c loadpng.h
|
|
|
|
$(CC) $(CFLAGS) -c make_sizes.c
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2023-09-30 04:50:37 +00:00
|
|
|
clean:
|
2023-10-01 04:03:47 +00:00
|
|
|
rm -f *~ *.o box_convert make_sizes
|
2023-09-30 04:50:37 +00:00
|
|
|
|