dos33fsprogs/gr-sim/Makefile
2017-05-02 10:56:59 -04:00

24 lines
362 B
Makefile

CC = gcc
CFLAGS = -Wall -O2
LFLAGS =
SDL_LIBS= `sdl-config --libs`
SDL_INCLUDE= `sdl-config --cflags`
all: rainbow
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
gr-sim.o: gr-sim.c
$(CC) $(CFLAGS) $(SDL_INCLUDE) -c gr-sim.c
clean:
rm -f *~ *.o gr-sim rainbow