dos33fsprogs/gr-sim/mode7_demo/Makefile

51 lines
914 B
Makefile
Raw Normal View History

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)
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)
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)
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)
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