dos33fsprogs/gr-sim/tfv/Makefile

161 lines
4.6 KiB
Makefile
Raw Normal View History

CC = gcc
CFLAGS = -Wall -O2 -g -I..
LFLAGS = -lm
SDL_LIBS= `sdl-config --libs`
SDL_INCLUDE= `sdl-config --cflags`
GR_SIM = ../gr-sim.a
PNG2RLE = ../../gr-utils/png2rle
2018-06-11 04:23:44 +00:00
ARTDIR = ../../tfv/art
all: tfv
###
2018-06-11 04:23:44 +00:00
$(GR_SIM):
cd .. && make
###
$(PNG2RLE):
cd ../.. && cd gr-utils && make
####
tfv_backgrounds.c: $(PNG2RLE) \
2018-06-11 04:23:44 +00:00
$(ARTDIR)/title.png \
$(ARTDIR)/map.png \
$(ARTDIR)/landing.png \
$(ARTDIR)/harfco.png \
$(ARTDIR)/belair.png \
$(ARTDIR)/math_office.png \
$(ARTDIR)/video_hr.png \
$(ARTDIR)/collegep.png \
$(ARTDIR)/umcp.png \
$(ARTDIR)/dining.png \
$(ARTDIR)/metro.png \
2018-06-20 20:11:09 +00:00
$(ARTDIR)/talbot.png \
2018-06-20 20:57:11 +00:00
$(ARTDIR)/waterfall.png \
2018-06-21 19:23:13 +00:00
$(ARTDIR)/fountain.png \
$(ARTDIR)/jc.png \
2018-06-24 05:01:11 +00:00
$(ARTDIR)/jc_hallway.png \
$(ARTDIR)/mirror_lake.png \
$(ARTDIR)/deutsch.png \
$(ARTDIR)/homeroom.png \
$(ARTDIR)/ap_calculus.png \
$(ARTDIR)/patriot_room.png \
2018-07-17 04:16:09 +00:00
$(ARTDIR)/jc_office.png \
$(ARTDIR)/puzzle.png
2018-06-11 04:23:44 +00:00
$(PNG2RLE) c $(ARTDIR)/title.png title_rle > tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/map.png map_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/landing.png landing_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/harfco.png harfco_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/belair.png belair_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/math_office.png math_office_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/video_hr.png video_hr_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/collegep.png collegep_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/umcp.png umcp_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/dining.png dining_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/metro.png metro_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/talbot.png talbot_rle >> tfv_backgrounds.c
2018-06-20 20:11:09 +00:00
$(PNG2RLE) c $(ARTDIR)/waterfall.png waterfall_rle >> tfv_backgrounds.c
2018-06-21 03:50:17 +00:00
$(PNG2RLE) c $(ARTDIR)/fountain.png fountain_rle >> tfv_backgrounds.c
2018-06-21 19:23:13 +00:00
$(PNG2RLE) c $(ARTDIR)/jc.png jc_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/jc_hallway.png jc_hallway_rle >> tfv_backgrounds.c
2018-06-24 05:01:11 +00:00
$(PNG2RLE) c $(ARTDIR)/mirror_lake.png mirror_lake_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/deutsch.png deutsch_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/homeroom.png homeroom_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/ap_calculus.png ap_calculus_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/patriot_room.png patriot_room_rle >> tfv_backgrounds.c
$(PNG2RLE) c $(ARTDIR)/jc_office.png jc_office_rle >> tfv_backgrounds.c
2018-07-17 04:16:09 +00:00
$(PNG2RLE) c $(ARTDIR)/puzzle.png puzzle_rle >> tfv_backgrounds.c
####
tfv_backgrounds.o: tfv_backgrounds.c tfv_backgrounds.h
$(CC) $(CFLAGS) -c tfv_backgrounds.c
tfv_battle.o: tfv_battle.c
$(CC) $(CFLAGS) -c tfv_battle.c
2018-07-07 19:18:08 +00:00
tfv_credits.o: tfv_credits.c
$(CC) $(CFLAGS) -c tfv_credits.c
2018-07-14 04:04:03 +00:00
tfv_dialog.o: tfv_dialog.c
$(CC) $(CFLAGS) -c tfv_dialog.c
2018-07-14 18:57:19 +00:00
tfv_ending.o: tfv_ending.c
$(CC) $(CFLAGS) -c tfv_ending.c
tfv_flying.o: tfv_flying.c tfv_flying_fixed.c tfv_flying_float.c tfv_flying_6502.c
$(CC) $(CFLAGS) -c tfv_flying.c
2018-06-25 19:39:19 +00:00
tfv_game_over.o: tfv_game_over.c
$(CC) $(CFLAGS) -c tfv_game_over.c
tfv_help.o: tfv_help.c
$(CC) $(CFLAGS) -c tfv_help.c
tfv_info.o: tfv_info.c
$(CC) $(CFLAGS) -c tfv_info.c
2018-06-25 19:39:19 +00:00
tfv_map.o: tfv_map.c
$(CC) $(CFLAGS) -c tfv_map.c
tfv_opener.o: tfv_opener.c ../tfv_utils.h
$(CC) $(CFLAGS) -c tfv_opener.c
2018-07-18 04:11:55 +00:00
tfv_player_select.o: tfv_player_select.c
$(CC) $(CFLAGS) -c tfv_player_select.c
tfv_random.o: tfv_random.c
$(CC) $(CFLAGS) -c tfv_random.c
tfv_sprites.o: tfv_sprites.c tfv_sprites.c
$(CC) $(CFLAGS) -c tfv_sprites.c
tfv_textentry.o: tfv_textentry.c
$(CC) $(CFLAGS) -c tfv_textentry.c
tfv_title.o: tfv_title.c ../tfv_utils.h tfv_backgrounds.h
$(CC) $(CFLAGS) -c tfv_title.c
2018-06-25 19:59:53 +00:00
tfv_worldmap.o: tfv_worldmap.c tfv_mapinfo.h tfv_dialog.h
$(CC) $(CFLAGS) -c tfv_worldmap.c
tfv_multiply.o: tfv_multiply.c
$(CC) $(CFLAGS) -c tfv_multiply.c
tfv_multiply: tfv_multiply.o
$(CC) $(LFLAGS) -o tfv_multiply tfv_multiply.o
tfv.o: tfv.c ../gr-sim.h tfv_backgrounds.h tfv_sprites.h
$(CC) $(CFLAGS) -c tfv.c
2018-07-14 04:04:03 +00:00
tfv: tfv.o tfv_backgrounds.o tfv_battle.o tfv_credits.o tfv_dialog.o \
2018-07-14 18:57:19 +00:00
tfv_ending.o tfv_flying.o \
2018-06-25 19:39:19 +00:00
tfv_game_over.o tfv_help.o tfv_info.o tfv_map.o \
2018-07-18 04:11:55 +00:00
tfv_opener.o tfv_player_select.o \
tfv_random.o tfv_sprites.o tfv_textentry.o \
2018-06-12 04:44:34 +00:00
tfv_title.o tfv_worldmap.o tfv_mapinfo.h \
$(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o tfv tfv.o \
2018-07-14 04:04:03 +00:00
tfv_backgrounds.o tfv_battle.o tfv_credits.o tfv_dialog.o \
2018-07-14 18:57:19 +00:00
tfv_ending.o tfv_flying.o \
2018-06-25 19:39:19 +00:00
tfv_game_over.o tfv_help.o tfv_info.o tfv_map.o \
2018-07-18 04:11:55 +00:00
tfv_opener.o tfv_player_select.o \
tfv_random.o tfv_sprites.o tfv_textentry.o \
tfv_title.o tfv_worldmap.o \
$(GR_SIM)
clean:
rm -f *~ *.o tfv