blues/Makefile

18 lines
417 B
Makefile
Raw Normal View History

2018-07-08 16:08:53 +02:00
SDL_CFLAGS := `sdl2-config --cflags`
2018-07-16 14:43:34 +02:00
SDL_LIBS := `sdl2-config --libs`
2018-07-08 16:08:53 +02:00
SRCS := decode.c fileio.c game.c level.c main.c opcodes.c resource.c screen.c sound.c staticres.c sys_sdl2.c triggers.c unpack.c util.c
OBJS := $(SRCS:.c=.o)
DEPS := $(SRCS:.c=.d)
CPPFLAGS := -Wall -Wpedantic -MMD $(SDL_CFLAGS) -g
blues: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(SDL_LIBS) -lmodplug
clean:
rm -f *.o *.d
-include $(DEPS)