dos33fsprogs/gr-sim/kaleido_sparkle/Makefile
2018-06-10 13:04:30 -04:00

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