dos33fsprogs/gr-sim/Makefile

237 lines
6.3 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-08-17 20:00:48 +00:00
LFLAGS = -lm
2017-05-02 13:59:39 +00:00
SDL_LIBS= `sdl-config --libs`
SDL_INCLUDE= `sdl-config --cflags`
2017-12-29 04:27:31 +00:00
all: fade fixed_point rainbow sparkle starfield starfield_fixed kaleido \
2018-02-14 05:41:23 +00:00
tfv mode7_demo text text_demo tfv_multiply rasterbars rasterbars_fixed \
2018-02-14 21:28:22 +00:00
lz4d_verbose 6502_test
2017-05-04 18:34:57 +00:00
#### Library
gr_fast_clear.o: gr_fast_clear.c gr-sim.h
$(CC) $(CFLAGS) -c gr_fast_clear.c
####
demo_title.c: ../gr-utils/png2rle ../tfv/demo.png
../gr-utils/png2rle c ../tfv/demo.png demo_rle > demo_title.c
2017-12-15 14:20:40 +00:00
####
fade: fade.o 6502_emulate.o gr-sim.o tfv_utils.o gr_fast_clear.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o fade fade.o 6502_emulate.o gr-sim.o gr_fast_clear.o tfv_utils.o
2017-12-15 14:20:40 +00:00
2017-12-15 19:04:50 +00:00
fade.o: fade.c demo_title.c
2017-12-15 14:20:40 +00:00
$(CC) $(CFLAGS) -c fade.c
2017-05-04 18:34:57 +00:00
2017-08-24 03:43:49 +00:00
####
2018-02-14 21:28:22 +00:00
lz4d_verbose: lz4d_verbose.o 6502_emulate.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o lz4d_verbose lz4d_verbose.o 6502_emulate.o
2018-02-14 05:41:23 +00:00
2018-02-14 21:28:22 +00:00
lz4d_verbose.o: lz4d_verbose.c demo_title.c
$(CC) $(CFLAGS) -c lz4d_verbose.c
2018-02-14 05:41:23 +00:00
####
2017-08-24 03:43:49 +00:00
fixed_point: fixed_point.o
$(CC) $(LFLAGS) -o fixed_point fixed_point.o
fixed_point.o: fixed_point.c
$(CC) $(CFLAGS) -c fixed_point.c
2017-05-04 18:34:57 +00:00
####
2017-05-02 14:56:59 +00:00
rainbow: rainbow.o 6502_emulate.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o rainbow rainbow.o 6502_emulate.o gr-sim.o
2017-05-02 14:56:59 +00:00
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
####
text: text.o 6502_emulate.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o text text.o 6502_emulate.o gr-sim.o
2017-05-04 18:34:57 +00:00
text.o: text.c
$(CC) $(CFLAGS) -c text.c
####
text_demo: text_demo.o 6502_emulate.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o text_demo text_demo.o 6502_emulate.o gr-sim.o
2018-01-08 21:03:51 +00:00
text_demo.o: text_demo.c
$(CC) $(CFLAGS) -c text_demo.c
####
mode7_demo: mode7_demo.o 6502_emulate.o gr-sim.o gr_fast_clear.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o mode7_demo mode7_demo.o \
6502_emulate.o gr-sim.o gr_fast_clear.o
mode7_demo.o: mode7_demo.c
$(CC) $(CFLAGS) -c mode7_demo.c
2017-05-04 18:34:57 +00:00
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
2017-09-14 19:12:38 +00:00
tfv_citymap.o: tfv_citymap.c
$(CC) $(CFLAGS) -c tfv_citymap.c
tfv_flying.o: tfv_flying.c tfv_flying_fixed.c tfv_flying_float.c tfv_flying_6502.c
2017-08-13 19:38:49 +00:00
$(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-11-25 05:56:41 +00:00
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
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
tfv: tfv.o tfv_backgrounds.o tfv_battle.o tfv_citymap.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 \
6502_emulate.o gr-sim.o gr_fast_clear.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o tfv tfv.o \
tfv_backgrounds.o tfv_battle.o tfv_citymap.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 \
6502_emulate.o gr-sim.o gr_fast_clear.o
2017-05-03 14:53:27 +00:00
###
2017-05-02 13:59:39 +00:00
kaleido: kaleido.o 6502_emulate.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o kaleido kaleido.o 6502_emulate.o gr-sim.o
2017-05-02 19:21:32 +00:00
kaleido.o: kaleido.c
$(CC) $(CFLAGS) -c kaleido.c
rasterbars: rasterbars.o 6502_emulate.o gr-sim.o gr_fast_clear.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o rasterbars rasterbars.o \
6502_emulate.o gr-sim.o gr_fast_clear.o
2018-01-08 05:50:18 +00:00
rasterbars.o: rasterbars.c
$(CC) $(CFLAGS) -c rasterbars.c
rasterbars_fixed: rasterbars_fixed.o 6502_emulate.o gr-sim.o gr_fast_clear.o
2018-01-10 05:38:50 +00:00
$(CC) $(LFLAGS) $(SDL_LIBS) -o rasterbars_fixed rasterbars_fixed.o \
6502_emulate.o gr-sim.o gr_fast_clear.o
2018-01-10 05:38:50 +00:00
rasterbars_fixed.o: rasterbars_fixed.c
$(CC) $(CFLAGS) -c rasterbars_fixed.c
sparkle: sparkle.o 6502_emulate.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o sparkle sparkle.o 6502_emulate.o gr-sim.o
2017-05-02 19:21:32 +00:00
sparkle.o: sparkle.c
$(CC) $(CFLAGS) -c sparkle.c
starfield: starfield.o 6502_emulate.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o starfield starfield.o 6502_emulate.o gr-sim.o
2017-12-14 21:52:58 +00:00
starfield.o: starfield.c
$(CC) $(CFLAGS) -c starfield.c
starfield_fixed: starfield_fixed.o 6502_emulate.o gr-sim.o
$(CC) $(LFLAGS) $(SDL_LIBS) -o starfield_fixed starfield_fixed.o 6502_emulate.o gr-sim.o
2017-12-29 04:27:31 +00:00
starfield_fixed.o: starfield_fixed.c
$(CC) $(CFLAGS) -c starfield_fixed.c
2017-12-14 21:52:58 +00:00
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
6502_emulate.o: 6502_emulate.c 6502_emulate.h
$(CC) $(CFLAGS) $(SDL_INCLUDE) -c 6502_emulate.c
2018-02-14 18:57:58 +00:00
6502_test: 6502_test.o 6502_emulate.o
$(CC) $(LFLAGS) -o 6502_test 6502_test.o 6502_emulate.o
6502_test.o: 6502_test.c 6502_emulate.h
$(CC) $(CFLAGS) -c 6502_test.c
2017-05-02 13:59:39 +00:00
clean:
2017-12-29 04:27:31 +00:00
rm -f *~ *.o gr-sim rainbow sparkle starfield starfield_fixed kaleido \
2018-01-08 05:50:18 +00:00
tfv text mode7_demo fade fixed_point tfv_multiply \
2018-02-14 05:41:23 +00:00
rasterbars rasterbars_fixed lookup_tables text_demo \
2018-02-14 21:28:22 +00:00
lz4d_verbose 6502_test
2017-05-02 13:59:39 +00:00