dos33fsprogs/utils/gr-sim/tunnel/Makefile
Vince Weaver b1238af49d re-arranged the entire directory structure
this will probably upset people
2021-01-05 15:29:31 -05: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