2018-06-29 16:26:48 -04: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-04 11:53:13 -05:00
|
|
|
all: rotate rotate_zoom_in rotate_zoom_out
|
2018-06-29 16:26:48 -04: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 11:53:13 -05:00
|
|
|
$(CC) -o rotate rotate.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
2018-06-29 16:26:48 -04:00
|
|
|
|
|
|
|
rotate.o: rotate.c demo_title.c
|
|
|
|
$(CC) $(CFLAGS) -c rotate.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2021-01-04 11:53:13 -05: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
|
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-06-29 16:26:48 -04:00
|
|
|
clean:
|
2021-01-04 11:53:13 -05:00
|
|
|
rm -f *~ *.o rotate rotate_zoom_in rotate_zoom_out
|