mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-13 19:05:15 +00:00
29 lines
599 B
Makefile
29 lines
599 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) $(LFLAGS) $(SDL_LIBS) -o rasterbars rasterbars.o \
|
|
$(GR_SIM)
|
|
|
|
rasterbars.o: rasterbars.c
|
|
$(CC) $(CFLAGS) -c rasterbars.c
|
|
|
|
rasterbars_fixed: rasterbars_fixed.o $(GR_SIM)
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o rasterbars_fixed rasterbars_fixed.o \
|
|
$(GR_SIM)
|
|
|
|
rasterbars_fixed.o: rasterbars_fixed.c
|
|
$(CC) $(CFLAGS) -c rasterbars_fixed.c
|
|
|
|
|
|
clean:
|
|
rm -f *~ *.o rasterbars rasterbars_fixed
|