dos33fsprogs/gr-sim/tunnel/Makefile
2018-09-17 16:29:14 -04:00

32 lines
491 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: tunnel tunnel2
####
tunnel: tunnel.o $(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o tunnel tunnel.o $(GR_SIM)
tunnel.o: tunnel.c
$(CC) $(CFLAGS) -c tunnel.c
####
tunnel2: tunnel2.o $(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o tunnel2 tunnel2.o $(GR_SIM)
tunnel2.o: tunnel2.c
$(CC) $(CFLAGS) -c tunnel2.c
####
clean:
rm -f *~ *.o tunnel tunnel2