dos33fsprogs/gr-sim/Makefile

24 lines
362 B
Makefile
Raw Normal View History

2017-05-02 13:59:39 +00:00
CC = gcc
CFLAGS = -Wall -O2
LFLAGS =
SDL_LIBS= `sdl-config --libs`
SDL_INCLUDE= `sdl-config --cflags`
2017-05-02 14:56:59 +00:00
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
2017-05-02 13:59:39 +00:00
gr-sim.o: gr-sim.c
$(CC) $(CFLAGS) $(SDL_INCLUDE) -c gr-sim.c
clean:
2017-05-02 14:56:59 +00:00
rm -f *~ *.o gr-sim rainbow
2017-05-02 13:59:39 +00:00