2018-06-10 17:04:30 +00: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
|
|
|
|
|
|
|
|
all: bounce fixed_point lookup_tables mode7_demo text_demo
|
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
fixed_point: fixed_point.o
|
2019-10-27 17:20:14 +00:00
|
|
|
$(CC) -o fixed_point fixed_point.o $(LFLAGS)
|
2018-06-10 17:04:30 +00:00
|
|
|
|
|
|
|
fixed_point.o: fixed_point.c
|
|
|
|
$(CC) $(CFLAGS) -c fixed_point.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
lookup_tables: lookup_tables.o
|
2019-10-27 17:20:14 +00:00
|
|
|
$(CC) -o lookup_tables lookup_tables.o $(LFLAGS)
|
2018-06-10 17:04:30 +00:00
|
|
|
|
|
|
|
lookup_tables.o: lookup_tables.c
|
|
|
|
$(CC) $(CFLAGS) -c lookup_tables.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
mode7_demo: mode7_demo.o $(GR_SIM)
|
2019-10-27 17:20:14 +00:00
|
|
|
$(CC) -o mode7_demo mode7_demo.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-06-10 17:04:30 +00:00
|
|
|
|
|
|
|
mode7_demo.o: mode7_demo.c
|
|
|
|
$(CC) $(CFLAGS) -c mode7_demo.c
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
text_demo: text_demo.o $(GR_SIM)
|
2019-10-27 17:20:14 +00:00
|
|
|
$(CC) -o text_demo text_demo.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2018-06-10 17:04:30 +00:00
|
|
|
|
|
|
|
text_demo.o: text_demo.c
|
|
|
|
$(CC) $(CFLAGS) -c text_demo.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ *.o bounce fixed_point lookup_tables mode7_demo text_demo
|
|
|
|
|