2018-06-29 20:26:48 +00:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -Wall -O2 -I.. -g
|
|
|
|
LFLAGS = -lm
|
|
|
|
|
|
|
|
SDL_LIBS= `sdl-config --libs`
|
|
|
|
SDL_INCLUDE= `sdl-config --cflags`
|
|
|
|
GR_SIM = ../gr-sim.a
|
|
|
|
|
2021-01-05 20:32:11 +00:00
|
|
|
all: rotate rotate_zoom_in rotate_zoom_out rotate_in_lookup rotate_latecomer \
|
|
|
|
rotate_rotozoom rotate_rotolookup
|
2018-06-29 20:26:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
#demo_title.c: ../gr-utils/png2rle ../tfv/demo.png
|
|
|
|
# ../gr-utils/png2rle c ../tfv/demo.png demo_rle > demo_title.c
|
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
rotate: rotate.o $(GR_SIM)
|
2021-01-04 16:53:13 +00:00
|
|
|
$(CC) -o rotate rotate.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
2018-06-29 20:26:48 +00:00
|
|
|
|
|
|
|
rotate.o: rotate.c demo_title.c
|
|
|
|
$(CC) $(CFLAGS) -c rotate.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2021-01-05 20:32:11 +00:00
|
|
|
rotate_in_lookup: rotate_in_lookup.o $(GR_SIM)
|
|
|
|
$(CC) -o rotate_in_lookup rotate_in_lookup.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
|
|
|
|
|
|
|
rotate_in_lookup.o: rotate_in_lookup.c demo_title.c
|
|
|
|
$(CC) $(CFLAGS) -c rotate_in_lookup.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2021-01-04 16:53:13 +00:00
|
|
|
rotate_zoom_in: rotate_zoom_in.o $(GR_SIM)
|
|
|
|
$(CC) -o rotate_zoom_in rotate_zoom_in.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
|
|
|
|
|
|
|
rotate_zoom_in.o: rotate_zoom_in.c demo_title.c
|
|
|
|
$(CC) $(CFLAGS) -c rotate_zoom_in.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
rotate_zoom_out: rotate_zoom_out.o $(GR_SIM)
|
|
|
|
$(CC) -o rotate_zoom_out rotate_zoom_out.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
|
|
|
|
|
|
|
rotate_zoom_out.o: rotate_zoom_out.c demo_title.c
|
|
|
|
$(CC) $(CFLAGS) -c rotate_zoom_out.c
|
|
|
|
|
2021-01-05 20:32:11 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
rotate_latecomer: rotate_latecomer.o $(GR_SIM)
|
|
|
|
$(CC) -o rotate_latecomer rotate_latecomer.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
|
|
|
|
|
|
|
rotate_latecomer.o: rotate_latecomer.c demo_title.c
|
|
|
|
$(CC) $(CFLAGS) -c rotate_latecomer.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
rotate_rotozoom: rotate_rotozoom.o $(GR_SIM)
|
|
|
|
$(CC) -o rotate_rotozoom rotate_rotozoom.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
|
|
|
|
|
|
|
rotate_rotozoom.o: rotate_rotozoom.c demo_title.c
|
|
|
|
$(CC) $(CFLAGS) -c rotate_rotozoom.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
rotate_rotolookup: rotate_rotolookup.o $(GR_SIM)
|
|
|
|
$(CC) -o rotate_rotolookup rotate_rotolookup.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
|
|
|
|
|
|
|
rotate_rotolookup.o: rotate_rotolookup.c demo_title.c
|
|
|
|
$(CC) $(CFLAGS) -c rotate_rotolookup.c
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-04 16:53:13 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-06-29 20:26:48 +00:00
|
|
|
clean:
|
2021-01-05 20:32:11 +00:00
|
|
|
rm -f *~ *.o rotate rotate_zoom_in rotate_zoom_out rotate_in_lookup rotate_latecomer rotate_rotozoom rotate_rotolookup
|