mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-01 01:06:33 +00:00
81 lines
1.9 KiB
Makefile
81 lines
1.9 KiB
Makefile
CC = gcc
|
|
CFLAGS = -Wall -O2 -I.. -g
|
|
LFLAGS = -lm
|
|
|
|
SDL_LIBS= `sdl-config --libs`
|
|
SDL_INCLUDE= `sdl-config --cflags`
|
|
GR_SIM = ../gr-sim.a
|
|
|
|
all: rotate rotate_zoom_in rotate_zoom_out rotate_in_lookup rotate_latecomer \
|
|
rotate_rotozoom rotate_rotolookup
|
|
|
|
|
|
####
|
|
#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)
|
|
$(CC) -o rotate rotate.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
|
|
|
|
rotate.o: rotate.c demo_title.c
|
|
$(CC) $(CFLAGS) -c rotate.c
|
|
|
|
####
|
|
|
|
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
|
|
|
|
####
|
|
|
|
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
|
|
|
|
####
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
clean:
|
|
rm -f *~ *.o rotate rotate_zoom_in rotate_zoom_out rotate_in_lookup rotate_latecomer rotate_rotozoom rotate_rotolookup
|