2018-07-01 21:50:51 -04:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -Wall -O2 -I.. -g
|
|
|
|
LFLAGS = -lm
|
|
|
|
|
|
|
|
SDL_LIBS= `sdl-config --libs`
|
|
|
|
SDL_INCLUDE= `sdl-config --cflags`
|
|
|
|
GR_SIM = ../gr-sim.a
|
|
|
|
|
2018-12-19 00:10:33 -05:00
|
|
|
all: fireworks fw_purple lines image_load hgr_view seven random16 scroll scroll-asm
|
2018-07-01 21:50:51 -04:00
|
|
|
|
2018-08-24 14:15:05 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
hgr_view: hgr_view.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o hgr_view hgr_view.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-08-24 14:15:05 -04:00
|
|
|
hgr_view.o: hgr_view.c
|
2019-11-12 09:53:24 -05:00
|
|
|
|
2018-08-24 14:15:05 -04:00
|
|
|
$(CC) $(CFLAGS) -c hgr_view.c
|
2018-07-01 21:50:51 -04:00
|
|
|
|
2018-07-02 00:33:46 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
image_load: image_load.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o image_load image_load.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-07-02 00:33:46 -04:00
|
|
|
|
|
|
|
image_load.o: image_load.c
|
|
|
|
$(CC) $(CFLAGS) -c image_load.c
|
|
|
|
|
2018-07-01 21:50:51 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
lines: lines.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o lines lines.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-07-01 21:50:51 -04:00
|
|
|
|
|
|
|
lines.o: lines.c
|
|
|
|
$(CC) $(CFLAGS) -c lines.c
|
|
|
|
|
2018-09-03 23:44:53 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
fireworks: fireworks.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o fireworks fireworks.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-09-03 23:44:53 -04:00
|
|
|
|
|
|
|
fireworks.o: fireworks.c
|
|
|
|
$(CC) $(CFLAGS) -c fireworks.c
|
|
|
|
|
2018-09-04 22:34:52 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
fw_purple: fw_purple.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o fw_purple fw_purple.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-09-04 22:34:52 -04:00
|
|
|
|
|
|
|
fw_purple.o: fw_purple.c
|
|
|
|
$(CC) $(CFLAGS) -c fw_purple.c
|
2018-09-08 23:52:58 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
seven: seven.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o seven seven.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-09-08 23:52:58 -04:00
|
|
|
|
|
|
|
seven.o: seven.c
|
|
|
|
$(CC) $(CFLAGS) -c seven.c
|
2018-09-04 22:34:52 -04:00
|
|
|
|
2018-09-10 15:04:57 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
random16: random16.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o random16 random16.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-09-10 15:04:57 -04:00
|
|
|
|
|
|
|
random16.o: random16.c
|
|
|
|
$(CC) $(CFLAGS) -c random16.c
|
|
|
|
|
2018-07-01 21:50:51 -04:00
|
|
|
####
|
|
|
|
|
2018-12-16 21:55:35 -05:00
|
|
|
scroll: scroll.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o scroll scroll.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-12-16 21:55:35 -05:00
|
|
|
|
|
|
|
scroll.o: scroll.c
|
|
|
|
$(CC) $(CFLAGS) -c scroll.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-12-19 00:10:33 -05:00
|
|
|
scroll-asm: scroll-asm.o $(GR_SIM)
|
2019-11-12 09:53:24 -05:00
|
|
|
$(CC) -o scroll-asm scroll-asm.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-12-19 00:10:33 -05:00
|
|
|
|
|
|
|
scroll-asm.o: scroll-asm.c
|
|
|
|
$(CC) $(CFLAGS) -c scroll-asm.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-07-01 21:50:51 -04:00
|
|
|
|
|
|
|
clean:
|
2018-12-19 00:10:33 -05:00
|
|
|
rm -f *~ *.o fireworks lines image_load hgr_view fw_purple seven random16 scroll scroll-asm
|