Makefile 454 B

123456789101112131415161718192021
  1. TARGET = lyrebird
  2. LIBS = $(shell pkg-config --libs glib-2.0) -lpulse -lpulse-mainloop-glib -pthread -lrubberband -lm
  3. CC = gcc
  4. CFLAGS = -g -Wall $(shell pkg-config --cflags glib-2.0) -D_REENTRANT
  5. OBJS = src/lyrebird.o src/pulse.o src/rubberband.o src/recording.o src/playback.o
  6. all: $(TARGET)
  7. $(TARGET): $(OBJS)
  8. $(CC) $(OBJS) $(CFLAGS) $(LIBS) -o $(TARGET)
  9. %src/.o: src/%.c
  10. $(CC) $(CFLAGS) -c $<
  11. run: all
  12. ./$(TARGET)
  13. clean:
  14. rm src/*.o $(TARGET)