2017-05-02 13:59:39 +00:00
|
|
|
CC = gcc
|
2017-05-02 19:21:32 +00:00
|
|
|
CFLAGS = -Wall -O2 -g
|
2017-05-02 13:59:39 +00:00
|
|
|
LFLAGS =
|
|
|
|
|
|
|
|
SDL_LIBS= `sdl-config --libs`
|
|
|
|
SDL_INCLUDE= `sdl-config --cflags`
|
|
|
|
|
2017-05-04 18:34:57 +00:00
|
|
|
all: rainbow sparkle kaleido tfv text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
####
|
2017-05-02 14:56:59 +00:00
|
|
|
|
|
|
|
rainbow: rainbow.o gr-sim.o
|
|
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o rainbow rainbow.o gr-sim.o
|
|
|
|
|
|
|
|
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
|
|
|
####
|
|
|
|
|
2017-05-04 18:34:57 +00:00
|
|
|
text: text.o gr-sim.o
|
|
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o text text.o gr-sim.o
|
|
|
|
|
|
|
|
text.o: text.c
|
|
|
|
$(CC) $(CFLAGS) -c text.c
|
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2017-05-03 14:53:27 +00:00
|
|
|
tfv: tfv.o gr-sim.o
|
|
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o tfv tfv.o gr-sim.o
|
|
|
|
|
|
|
|
tfv.o: tfv.c
|
|
|
|
$(CC) $(CFLAGS) -c tfv.c
|
|
|
|
|
|
|
|
|
|
|
|
###
|
2017-05-02 13:59:39 +00:00
|
|
|
|
2017-05-02 19:21:32 +00:00
|
|
|
kaleido: kaleido.o gr-sim.o
|
|
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o kaleido kaleido.o gr-sim.o
|
|
|
|
|
|
|
|
kaleido.o: kaleido.c
|
|
|
|
$(CC) $(CFLAGS) -c kaleido.c
|
|
|
|
|
|
|
|
|
|
|
|
sparkle: sparkle.o gr-sim.o
|
|
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o sparkle sparkle.o gr-sim.o
|
|
|
|
|
|
|
|
sparkle.o: sparkle.c
|
|
|
|
$(CC) $(CFLAGS) -c sparkle.c
|
|
|
|
|
|
|
|
|
2017-05-17 21:14:47 +00:00
|
|
|
gr-sim.o: gr-sim.c apple2_font.h
|
2017-05-02 13:59:39 +00:00
|
|
|
$(CC) $(CFLAGS) $(SDL_INCLUDE) -c gr-sim.c
|
|
|
|
|
|
|
|
clean:
|
2017-05-04 18:34:57 +00:00
|
|
|
rm -f *~ *.o gr-sim rainbow sparkle kaleido tfv text
|
2017-05-02 13:59:39 +00:00
|
|
|
|
|
|
|
|