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
|
2018-06-10 17:04:30 +00:00
|
|
|
AR = ar
|
2017-05-02 13:59:39 +00:00
|
|
|
|
|
|
|
SDL_LIBS= `sdl-config --libs`
|
|
|
|
SDL_INCLUDE= `sdl-config --cflags`
|
|
|
|
|
2018-06-10 17:04:30 +00:00
|
|
|
all: gr-sim.a
|
|
|
|
make -C 6502_test
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C dos
|
2018-06-10 17:04:30 +00:00
|
|
|
make -C fade
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C fire
|
|
|
|
# make -C fluid
|
|
|
|
make -C gr
|
|
|
|
make -C hellmood_memories
|
2018-07-02 01:50:51 +00:00
|
|
|
make -C hgr
|
2018-06-10 17:04:30 +00:00
|
|
|
make -C kaleido_sparkle
|
|
|
|
make -C lz4
|
|
|
|
make -C mode7_demo
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C plasma
|
2018-06-10 17:04:30 +00:00
|
|
|
make -C rasterbars
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C rotate_wipe
|
2018-07-02 19:21:46 +00:00
|
|
|
make -C split_screen
|
2018-06-10 17:04:30 +00:00
|
|
|
make -C starfield
|
|
|
|
make -C text
|
|
|
|
make -C tfv
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C tunnel
|
|
|
|
make -C water
|
2017-05-04 18:34:57 +00:00
|
|
|
|
2018-01-08 19:01:19 +00:00
|
|
|
#### Library
|
|
|
|
|
|
|
|
gr_fast_clear.o: gr_fast_clear.c gr-sim.h
|
|
|
|
$(CC) $(CFLAGS) -c gr_fast_clear.c
|
|
|
|
|
2017-05-04 18:34:57 +00:00
|
|
|
####
|
|
|
|
|
2018-07-02 01:50:51 +00:00
|
|
|
gr-sim.a: 6502_emulate.o tfv_utils.o gr-sim.o gr_fast_clear.o hgr-sim.o
|
|
|
|
$(AR) crs gr-sim.a 6502_emulate.o tfv_utils.o gr-sim.o gr_fast_clear.o hgr-sim.o
|
2017-11-25 05:56:41 +00:00
|
|
|
|
2017-05-03 14:53:27 +00:00
|
|
|
|
|
|
|
###
|
2017-05-02 13:59:39 +00:00
|
|
|
|
2017-07-17 03:31:24 +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
|
|
|
|
|
2018-02-14 18:03:15 +00:00
|
|
|
6502_emulate.o: 6502_emulate.c 6502_emulate.h
|
2018-06-10 17:04:30 +00:00
|
|
|
$(CC) $(CFLAGS) -c 6502_emulate.c
|
2018-02-14 18:03:15 +00:00
|
|
|
|
2018-06-10 17:04:30 +00:00
|
|
|
tfv_utils.o: tfv_utils.c tfv_utils.h
|
|
|
|
$(CC) $(CFLAGS) -c tfv_utils.c
|
2018-02-14 18:57:58 +00:00
|
|
|
|
2018-07-02 01:50:51 +00:00
|
|
|
hgr-sim.o: hgr-sim.c gr-sim.h
|
|
|
|
$(CC) $(CFLAGS) $(SDL_INCLUDE) -c hgr-sim.c
|
|
|
|
|
2018-02-14 18:57:58 +00:00
|
|
|
|
2017-05-02 13:59:39 +00:00
|
|
|
clean:
|
2018-06-10 17:04:30 +00:00
|
|
|
rm -f *~ *.o *.a
|
|
|
|
make -C 6502_test clean
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C dos clean
|
2018-06-10 17:04:30 +00:00
|
|
|
make -C fade clean
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C fire clean
|
|
|
|
make -C fluid clean
|
|
|
|
make -C gr clean
|
|
|
|
make -C hellmood_memories clean
|
2018-07-02 19:21:46 +00:00
|
|
|
make -C hgr clean
|
2018-06-10 17:04:30 +00:00
|
|
|
make -C kaleido_sparkle clean
|
|
|
|
make -C lz4 clean
|
|
|
|
make -C mode7_demo clean
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C plasma clean
|
2018-06-10 17:04:30 +00:00
|
|
|
make -C rasterbars clean
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C rotate_wipe clean
|
2018-07-09 14:56:27 +00:00
|
|
|
make -C split_screen clean
|
2018-06-10 17:04:30 +00:00
|
|
|
make -C starfield clean
|
|
|
|
make -C text clean
|
|
|
|
make -C tfv clean
|
2021-01-05 21:13:43 +00:00
|
|
|
make -C tunnel clean
|
|
|
|
make -C water clean
|