mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-09 07:09:55 +00:00
41 lines
662 B
Makefile
41 lines
662 B
Makefile
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: sparkle kaleido rainbow
|
|
|
|
|
|
###
|
|
|
|
kaleido: kaleido.o $(GR_SIM)
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o kaleido kaleido.o $(GR_SIM)
|
|
|
|
kaleido.o: kaleido.c
|
|
$(CC) $(CFLAGS) -c kaleido.c
|
|
|
|
###
|
|
|
|
sparkle: sparkle.o $(GR_SIM)
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o sparkle sparkle.o $(GR_SIM)
|
|
|
|
sparkle.o: sparkle.c
|
|
$(CC) $(CFLAGS) -c sparkle.c
|
|
|
|
###
|
|
|
|
rainbow: rainbow.o $(GR_SIM)
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o rainbow rainbow.o $(GR_SIM)
|
|
|
|
rainbow.o: rainbow.c
|
|
$(CC) $(CFLAGS) -c rainbow.c
|
|
|
|
####
|
|
|
|
|
|
clean:
|
|
rm -f *~ *.o kaleido sparkle rainbow
|