2019-08-28 04:12:10 +00:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -Wall -O2 -I.. -g
|
|
|
|
LFLAGS = -lm
|
|
|
|
|
|
|
|
SDL_LIBS= `sdl-config --libs`
|
|
|
|
SDL_INCLUDE= `sdl-config --cflags`
|
|
|
|
GR_SIM = ../gr-sim.a
|
|
|
|
|
2021-10-15 12:30:15 +00:00
|
|
|
all: plasma plasma_fixed plasma_new
|
2019-08-28 04:12:10 +00:00
|
|
|
|
2021-01-09 06:41:44 +00:00
|
|
|
###
|
2019-08-28 04:12:10 +00:00
|
|
|
|
|
|
|
plasma: plasma.o $(GR_SIM)
|
2019-08-28 18:53:02 +00:00
|
|
|
$(CC) -o plasma plasma.o \
|
|
|
|
$(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
2019-08-28 04:12:10 +00:00
|
|
|
|
|
|
|
plasma.o: plasma.c
|
|
|
|
$(CC) $(CFLAGS) -c plasma.c
|
|
|
|
|
2021-01-09 06:41:44 +00:00
|
|
|
###
|
|
|
|
|
2021-10-15 12:30:15 +00:00
|
|
|
plasma_new: plasma_new.o $(GR_SIM)
|
|
|
|
$(CC) -o plasma_new plasma_new.o \
|
|
|
|
$(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
|
|
|
|
|
|
|
plasma_new.o: plasma_new.c
|
|
|
|
$(CC) $(CFLAGS) -c plasma_new.c
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2021-01-09 06:41:44 +00:00
|
|
|
plasma_fixed: plasma_fixed.o $(GR_SIM)
|
|
|
|
$(CC) -o plasma_fixed plasma_fixed.o \
|
|
|
|
$(GR_SIM) $(LFLAGS) $(SDL_LIBS)
|
|
|
|
|
|
|
|
plasma_fixed.o: plasma_fixed.c
|
|
|
|
$(CC) $(CFLAGS) -c plasma_fixed.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2019-08-28 04:12:10 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ *.o plasma
|