nodeaudio/src/makefile
Andrew Gundersen 1d75db5bde initial commit
2021-07-26 14:08:25 -05:00

26 lines
No EOL
439 B
Makefile

IDIR =../include
CC=gcc
CFLAGS=-I$(IDIR)
ODIR=obj
LDIR =-L/usr/local/lib -L/usr/lib
LIBS=-lportaudio
_DEPS = audio_handler.h frame_buffer.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = audio_handler.o frame_buffer.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
nodeaudio: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LDIR) $(LIBS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~