mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-04 20:06:09 +00:00
32 lines
491 B
Makefile
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
|