Pipe stdin to soundcard using SDL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 449B

1234567891011121314151617181920212223242526272829303132
  1. TARGET=sndpipe
  2. OBJ=$(TARGET).o
  3. SRC=$(TARGET).c
  4. ifeq ($(DEBUG), 0)
  5. CFLAGS=-Wall -Werror
  6. LDFLAGS=-s
  7. else
  8. CFLAGS=-Wall -Werror -g
  9. LDFLAGS=-g
  10. endif
  11. ifeq ($(SDL), 1)
  12. CFLAGS += -DSDL1=1
  13. LDFLAGS += -lSDL
  14. else
  15. CFLAGS += -DSDL2=1
  16. LDFLAGS += -lSDL2
  17. endif
  18. all: $(TARGET)
  19. $(TARGET): $(OBJ)
  20. gcc $(LDFLAGS) $< -o $@
  21. $(OBJ): $(SRC)
  22. gcc $(CFLAGS) -c $< -o $@
  23. .PHONY: clean
  24. clean:
  25. -rm -fv $(TARGET) $(OBJ)