dos33fsprogs/gr-sim/rasterbars/Makefile
Vince Weaver 50584c5541 fix ordering of LFLAGS in Makefiles
recent Debian stopped allowing this
2019-11-12 09:53:24 -05:00

28 lines
595 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: rasterbars rasterbars_fixed
rasterbars: rasterbars.o $(GR_SIM)
$(CC) -o rasterbars rasterbars.o $(GR_SIM) $(LFLAGS) $(SDL_LIBS)
rasterbars.o: rasterbars.c
$(CC) $(CFLAGS) -c rasterbars.c
rasterbars_fixed: rasterbars_fixed.o $(GR_SIM)
$(CC) -o rasterbars_fixed rasterbars_fixed.o $(GR_SIM) \
$(LFLAGS) $(SDL_LIBS)
rasterbars_fixed.o: rasterbars_fixed.c
$(CC) $(CFLAGS) -c rasterbars_fixed.c
clean:
rm -f *~ *.o rasterbars rasterbars_fixed