dos33fsprogs/gr-sim/Makefile

127 lines
3.2 KiB
Makefile
Raw Normal View History

2017-05-02 13:59:39 +00:00
CC = gcc
2017-05-02 19:21:32 +00:00
CFLAGS = -Wall -O2 -g
2017-05-02 13:59:39 +00:00
LFLAGS =
SDL_LIBS= `sdl-config --libs`
SDL_INCLUDE= `sdl-config --cflags`
2017-05-04 18:34:57 +00:00
all: rainbow sparkle kaleido tfv text
####
2017-05-02 14:56:59 +00:00
rainbow: rainbow.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o rainbow rainbow.o gr-sim.o
rainbow.o: rainbow.c
$(CC) $(CFLAGS) -c rainbow.c
2017-05-02 13:59:39 +00:00
2017-05-03 14:53:27 +00:00
####
2017-05-04 18:34:57 +00:00
text: text.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o text text.o gr-sim.o
text.o: text.c
$(CC) $(CFLAGS) -c text.c
2017-08-16 18:46:45 +00:00
###
../gr-utils/png2rle:
cd .. && cd gr-utils && make
2017-08-13 20:24:57 +00:00
####
2017-08-16 18:46:45 +00:00
tfv_backgrounds.c: ../gr-utils/png2rle \
../tfv/title.png \
2017-08-13 20:24:57 +00:00
../tfv/map.png \
../tfv/landing.png \
../tfv/harfco.png \
../tfv/belair.png \
../tfv/math_office.png \
../tfv/video_hr.png \
../tfv/collegep.png \
../tfv/umcp.png \
../tfv/dining.png \
../tfv/metro.png \
../tfv/talbot.png
../gr-utils/png2rle c ../tfv/title.png title_rle > tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/map.png map_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/landing.png landing_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/harfco.png harfco_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/belair.png belair_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/math_office.png math_office_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/video_hr.png video_hr_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/collegep.png collegep_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/umcp.png umcp_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/dining.png dining_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/metro.png metro_rle >> tfv_backgrounds.c
../gr-utils/png2rle c ../tfv/talbot.png talbot_rle >> tfv_backgrounds.c
2017-05-04 18:34:57 +00:00
####
2017-08-13 00:52:18 +00:00
tfv_backgrounds.o: tfv_backgrounds.c tfv_backgrounds.h
$(CC) $(CFLAGS) -c tfv_backgrounds.c
2017-08-13 19:38:49 +00:00
tfv_battle.o: tfv_battle.c
$(CC) $(CFLAGS) -c tfv_battle.c
tfv_flying.o: tfv_flying.c
$(CC) $(CFLAGS) -c tfv_flying.c
tfv_info.o: tfv_info.c
$(CC) $(CFLAGS) -c tfv_info.c
2017-08-13 00:15:34 +00:00
tfv_opener.o: tfv_opener.c tfv_utils.h
$(CC) $(CFLAGS) -c tfv_opener.c
2017-08-13 19:38:49 +00:00
tfv_sprites.o: tfv_sprites.c tfv_sprites.c
$(CC) $(CFLAGS) -c tfv_sprites.c
2017-08-16 18:46:45 +00:00
tfv_textentry.o: tfv_textentry.c
$(CC) $(CFLAGS) -c tfv_textentry.c
2017-08-13 00:52:18 +00:00
tfv_title.o: tfv_title.c tfv_utils.h tfv_backgrounds.h
$(CC) $(CFLAGS) -c tfv_title.c
2017-08-13 00:15:34 +00:00
tfv_utils.o: tfv_utils.c tfv_utils.h
$(CC) $(CFLAGS) -c tfv_utils.c
2017-05-03 14:53:27 +00:00
2017-08-16 18:46:45 +00:00
tfv_worldmap.o: tfv_worldmap.c
$(CC) $(CFLAGS) -c tfv_worldmap.c
2017-08-13 00:52:18 +00:00
tfv.o: tfv.c gr-sim.h tfv_backgrounds.h tfv_sprites.h
2017-05-03 14:53:27 +00:00
$(CC) $(CFLAGS) -c tfv.c
2017-08-16 18:46:45 +00:00
tfv: tfv.o tfv_backgrounds.o tfv_battle.o tfv_flying.o tfv_info.o tfv_opener.o tfv_sprites.o tfv_textentry.o tfv_title.o tfv_utils.o tfv_worldmap.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o tfv tfv.o tfv_backgrounds.o tfv_battle.o tfv_flying.o tfv_info.o tfv_opener.o tfv_sprites.o tfv_textentry.o tfv_title.o tfv_utils.o tfv_worldmap.o gr-sim.o
2017-05-03 14:53:27 +00:00
###
2017-05-02 13:59:39 +00:00
2017-05-02 19:21:32 +00:00
kaleido: kaleido.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o kaleido kaleido.o gr-sim.o
kaleido.o: kaleido.c
$(CC) $(CFLAGS) -c kaleido.c
sparkle: sparkle.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o sparkle sparkle.o gr-sim.o
sparkle.o: sparkle.c
$(CC) $(CFLAGS) -c sparkle.c
gr-sim.o: gr-sim.c gr-sim.h apple2_font.h
2017-05-02 13:59:39 +00:00
$(CC) $(CFLAGS) $(SDL_INCLUDE) -c gr-sim.c
clean:
2017-05-04 18:34:57 +00:00
rm -f *~ *.o gr-sim rainbow sparkle kaleido tfv text
2017-05-02 13:59:39 +00:00