mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-04 05:05:13 +00:00
61 lines
996 B
Makefile
61 lines
996 B
Makefile
CC = gcc
|
|
CFLAGS = -Wall -O2 -g
|
|
LFLAGS =
|
|
|
|
SDL_LIBS= `sdl-config --libs`
|
|
SDL_INCLUDE= `sdl-config --cflags`
|
|
|
|
all: rainbow sparkle kaleido tfv text
|
|
|
|
|
|
|
|
####
|
|
|
|
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
|
|
|
|
####
|
|
|
|
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
|
|
|
|
|
|
####
|
|
|
|
tfv: tfv.o gr-sim.o
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o tfv tfv.o gr-sim.o
|
|
|
|
tfv.o: tfv.c backgrounds.h tfv_sprites.h
|
|
$(CC) $(CFLAGS) -c tfv.c
|
|
|
|
|
|
###
|
|
|
|
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
|
|
|
|
|
|
gr-sim.o: gr-sim.c apple2_font.h
|
|
$(CC) $(CFLAGS) $(SDL_INCLUDE) -c gr-sim.c
|
|
|
|
clean:
|
|
rm -f *~ *.o gr-sim rainbow sparkle kaleido tfv text
|
|
|
|
|