Makefile 318 B

123456789101112131415161718
  1. TARGET=sdlogv
  2. SRCS = $(wildcard *.c)
  3. OBJS = $(SRCS:.c=.o)
  4. CFLAGS = -ansi -pedantic -Wall -Wextra -Werror
  5. LIBS = -lSDL2_mixer -lSDL2 -ltheoradec -ltheora -lvorbis -logg
  6. all: $(OBJS) $(TARGET)
  7. %: %.c theora.h
  8. $(CC) $(CFLAGS) $< -c $@
  9. $(TARGET):
  10. $(CC) $(OBJS) -o $(TARGET) $(LIBS)
  11. clean:
  12. rm $(TARGET) *.o || true